fix: fix community messages appearing in the normal chat list

This commit is contained in:
Jonathan Rainville 2020-12-17 11:46:27 -05:00 committed by Iuri Matias
parent 019f558308
commit 8c258b528b
1 changed files with 2 additions and 0 deletions

View File

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