fix: fix community messages appearing in the normal chat list
This commit is contained in:
parent
019f558308
commit
8c258b528b
|
@ -487,6 +487,8 @@ QtObject:
|
||||||
|
|
||||||
proc updateChats*(self: ChatsView, chats: seq[Chat], triggerChange:bool = true) =
|
proc updateChats*(self: ChatsView, chats: seq[Chat], triggerChange:bool = true) =
|
||||||
for chat in chats:
|
for chat in chats:
|
||||||
|
if (chat.communityId != ""):
|
||||||
|
return
|
||||||
self.upsertChannel(chat.id)
|
self.upsertChannel(chat.id)
|
||||||
self.chats.updateChat(chat, triggerChange)
|
self.chats.updateChat(chat, triggerChange)
|
||||||
if(self.activeChannel.id == chat.id):
|
if(self.activeChannel.id == chat.id):
|
||||||
|
|
Loading…
Reference in New Issue