fix(chat-service): fix chatsWithCategoryHaveUnreadMessages for catID

This commit is contained in:
Jonathan Rainville 2023-04-11 14:55:39 -04:00
parent 1225a71877
commit 2551ee0914
1 changed files with 2 additions and 0 deletions

View File

@ -282,6 +282,8 @@ QtObject:
return false return false
for chat in self.channelGroups[communityId].chats: for chat in self.channelGroups[communityId].chats:
if chat.categoryId != categoryId:
continue
if chat.unviewedMessagesCount > 0 or chat.unviewedMentionsCount > 0: if chat.unviewedMessagesCount > 0 or chat.unviewedMentionsCount > 0:
return true return true
return false return false