From 1979be1f854b4e07f4932d71db6eb4bff8c60f08 Mon Sep 17 00:00:00 2001 From: Ali <> Date: Fri, 27 Mar 2020 11:38:21 +0400 Subject: [PATCH] Collect mention stats when excluding muted peers in a folder --- submodules/ChatListUI/Sources/Node/ChatListNodeLocation.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/submodules/ChatListUI/Sources/Node/ChatListNodeLocation.swift b/submodules/ChatListUI/Sources/Node/ChatListNodeLocation.swift index 3e4ec44a27..108f6dc796 100644 --- a/submodules/ChatListUI/Sources/Node/ChatListNodeLocation.swift +++ b/submodules/ChatListUI/Sources/Node/ChatListNodeLocation.swift @@ -44,7 +44,7 @@ func chatListFilterPredicate(filter: ChatListFilterData) -> ChatListFilterPredic } var messageTagSummary: ChatListMessageTagSummaryResultCalculation? - if filter.excludeRead { + if filter.excludeRead || filter.excludeMuted { messageTagSummary = ChatListMessageTagSummaryResultCalculation(addCount: ChatListMessageTagSummaryResultComponent(tag: .unseenPersonalMessage, namespace: Namespaces.Message.Cloud), subtractCount: ChatListMessageTagActionsSummaryResultComponent(type: PendingMessageActionType.consumeUnseenPersonalMessage, namespace: Namespaces.Message.Cloud)) } return ChatListFilterPredicate(includePeerIds: includePeers, excludePeerIds: excludePeers, pinnedPeerIds: filter.includePeers.pinnedPeers, messageTagSummary: messageTagSummary, includeAdditionalPeerGroupIds: includeAdditionalPeerGroupIds, include: { peer, isMuted, isUnread, isContact, messageTagSummaryResult in