From f7ce9d4ecfecc20e59f79565818a5b5f73aa90fc Mon Sep 17 00:00:00 2001 From: Ali <> Date: Mon, 3 Jul 2023 14:59:02 +0200 Subject: [PATCH] Stories --- submodules/ChatListUI/Sources/ChatListController.swift | 2 +- submodules/TelegramCore/Sources/ApiUtils/TelegramUser.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/submodules/ChatListUI/Sources/ChatListController.swift b/submodules/ChatListUI/Sources/ChatListController.swift index 652f25fffd..b1d91b9467 100644 --- a/submodules/ChatListUI/Sources/ChatListController.swift +++ b/submodules/ChatListUI/Sources/ChatListController.swift @@ -1646,7 +1646,7 @@ public class ChatListControllerImpl: TelegramBaseController, ChatListController for filter in filters { if filter.id == filterId, case let .filter(_, title, _, data) = filter { - if let filterPeersAreMuted { + if let filterPeersAreMuted, filterPeersAreMuted.peerIds.count <= 200 { items.append(.action(ContextMenuActionItem(text: filterPeersAreMuted.areMuted ? strongSelf.presentationData.strings.ChatList_ContextUnmuteAll : strongSelf.presentationData.strings.ChatList_ContextMuteAll, textColor: .primary, badge: nil, icon: { theme in return generateTintedImage(image: UIImage(bundleImageName: filterPeersAreMuted.areMuted ? "Chat/Context Menu/Unmute" : "Chat/Context Menu/Muted"), color: theme.contextMenu.primaryColor) }, action: { c, f in diff --git a/submodules/TelegramCore/Sources/ApiUtils/TelegramUser.swift b/submodules/TelegramCore/Sources/ApiUtils/TelegramUser.swift index f0086070d8..3be6fffff7 100644 --- a/submodules/TelegramCore/Sources/ApiUtils/TelegramUser.swift +++ b/submodules/TelegramCore/Sources/ApiUtils/TelegramUser.swift @@ -70,7 +70,7 @@ extension TelegramUser { var storiesHidden: Bool? if !isMin { - storiesHidden = (flags2 & (1 << 5)) != 0 + storiesHidden = (flags2 & (1 << 3)) != 0 } var botInfo: BotUserInfo?