From c7aa3c799985c4bb1a19c484dcbf89c841d2162a Mon Sep 17 00:00:00 2001 From: Boris Melnik Date: Tue, 4 Oct 2022 18:56:49 +0300 Subject: [PATCH] Fix(AppSearch): Exclude not joined community from updates handling Closes: #7701 --- src/app_service/service/chat/service.nim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app_service/service/chat/service.nim b/src/app_service/service/chat/service.nim index ecd8778990..1249a25043 100644 --- a/src/app_service/service/chat/service.nim +++ b/src/app_service/service/chat/service.nim @@ -138,7 +138,8 @@ QtObject: # Handling community updates if (receivedData.communities.len > 0): for community in receivedData.communities: - self.updateOrAddChannelGroup(community.toChannelGroupDto()) + if (community.joined): + self.updateOrAddChannelGroup(community.toChannelGroupDto()) proc sortPersonnalChatAsFirst[T, D](x, y: (T, D)): int = if (x[1].channelGroupType == Personal): return -1