From 2551ee0914e726e7536f1ea9f8168817ac8cdf0d Mon Sep 17 00:00:00 2001 From: Jonathan Rainville Date: Tue, 11 Apr 2023 14:55:39 -0400 Subject: [PATCH] fix(chat-service): fix chatsWithCategoryHaveUnreadMessages for catID --- src/app_service/service/chat/service.nim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/app_service/service/chat/service.nim b/src/app_service/service/chat/service.nim index b79ed3587e..729080c529 100644 --- a/src/app_service/service/chat/service.nim +++ b/src/app_service/service/chat/service.nim @@ -282,6 +282,8 @@ QtObject: return false for chat in self.channelGroups[communityId].chats: + if chat.categoryId != categoryId: + continue if chat.unviewedMessagesCount > 0 or chat.unviewedMentionsCount > 0: return true return false