Skip to content

Commit

Permalink
Stories
Browse files Browse the repository at this point in the history
  • Loading branch information
Ali committed Jul 21, 2023
1 parent 0564463 commit 0b16356
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3963,9 +3963,10 @@ public final class StoryItemSetContainerComponent: Component {
let _ = (component.context.engine.data.get(
TelegramEngine.EngineData.Item.Peer.NotificationSettings(id: component.slice.peer.id),
TelegramEngine.EngineData.Item.NotificationSettings.Global(),
TelegramEngine.EngineData.Item.Contacts.Top()
TelegramEngine.EngineData.Item.Contacts.Top(),
TelegramEngine.EngineData.Item.Peer.IsContact(id: component.slice.peer.id)
)
|> deliverOnMainQueue).start(next: { [weak self] settings, globalSettings, topSearchPeers in
|> deliverOnMainQueue).start(next: { [weak self] settings, globalSettings, topSearchPeers, isContact in
guard let self, let component = self.component, let controller = component.controller() else {
return
}
Expand All @@ -3977,7 +3978,7 @@ public final class StoryItemSetContainerComponent: Component {

let isMuted = resolvedAreStoriesMuted(globalSettings: globalSettings._asGlobalNotificationSettings(), peer: component.slice.peer._asPeer(), peerSettings: settings._asNotificationSettings(), topSearchPeers: topSearchPeers)

if !component.slice.peer.isService {
if !component.slice.peer.isService && isContact {
items.append(.action(ContextMenuActionItem(text: isMuted ? component.strings.StoryFeed_ContextNotifyOn : component.strings.StoryFeed_ContextNotifyOff, icon: { theme in
return generateTintedImage(image: UIImage(bundleImageName: component.slice.additionalPeerData.isMuted ? "Chat/Context Menu/Unmute" : "Chat/Context Menu/Muted"), color: theme.contextMenu.primaryColor)
}, action: { [weak self] _, a in
Expand Down
2 changes: 1 addition & 1 deletion versions.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"app": "9.6.4",
"app": "9.6.5",
"bazel": "6.1.1",
"xcode": "14.2"
}

0 comments on commit 0b16356

Please sign in to comment.