Fix(AppSearch): Exclude not joined community from updates handling

Closes: #7701
This commit is contained in:
Boris Melnik 2022-10-04 18:56:49 +03:00 committed by Iuri Matias
parent 12fc331cc6
commit c7aa3c7999
1 changed files with 2 additions and 1 deletions

View File

@ -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