Skip to content
This repository has been archived by the owner on May 10, 2019. It is now read-only.

Hide count of unread messages for muted conversations #197

Open
wants to merge 1 commit into
base: public
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion legacy/TelegraphKit/TGDatabase.mm
Original file line number Diff line number Diff line change
Expand Up @@ -17313,7 +17313,7 @@ - (void)transactionAddMessages:(NSArray<TGMessage *> *)initialAddMessages

__block int32_t updatedUnreadCount = 0;
[peers enumerateKeysAndObjectsUsingBlock:^(__unused NSNumber *nPeerId, TGConversation *conversation, __unused BOOL *stop) {
if (!TGPeerIdIsChannel(conversation.conversationId)) {
if (!TGPeerIdIsChannel(conversation.conversationId) && ![TGDatabaseInstance() isPeerMuted:conversation.conversationId]) {
updatedUnreadCount += conversation.unreadCount;
}
}];
Expand Down