Fix(AppSearch): Exclude not joined community from updates handling
Closes: #7701
This commit is contained in:
parent
12fc331cc6
commit
c7aa3c7999
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue