This commit is contained in:
Ali 2023-07-03 14:59:02 +02:00
parent dd06ff38d0
commit f7ce9d4ecf
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -70,7 +70,7 @@ extension TelegramUser {
var storiesHidden: Bool?
if !isMin {
storiesHidden = (flags2 & (1 << 5)) != 0
storiesHidden = (flags2 & (1 << 3)) != 0
}
var botInfo: BotUserInfo?