mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Merge branch 'master' of gitlab.com:peter-iakovlev/telegram-ios
This commit is contained in:
commit
d39d33f851
@ -3964,9 +3964,10 @@ public final class StoryItemSetContainerComponent: Component {
|
|||||||
let _ = (component.context.engine.data.get(
|
let _ = (component.context.engine.data.get(
|
||||||
TelegramEngine.EngineData.Item.Peer.NotificationSettings(id: component.slice.peer.id),
|
TelegramEngine.EngineData.Item.Peer.NotificationSettings(id: component.slice.peer.id),
|
||||||
TelegramEngine.EngineData.Item.NotificationSettings.Global(),
|
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 {
|
guard let self, let component = self.component, let controller = component.controller() else {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -3978,7 +3979,7 @@ public final class StoryItemSetContainerComponent: Component {
|
|||||||
|
|
||||||
let isMuted = resolvedAreStoriesMuted(globalSettings: globalSettings._asGlobalNotificationSettings(), peer: component.slice.peer._asPeer(), peerSettings: settings._asNotificationSettings(), topSearchPeers: topSearchPeers)
|
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
|
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)
|
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
|
}, action: { [weak self] _, a in
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"app": "9.6.4",
|
"app": "9.6.5",
|
||||||
"bazel": "6.1.1",
|
"bazel": "6.1.1",
|
||||||
"xcode": "14.2"
|
"xcode": "14.2"
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user