fix(@desktop/communities): update communities chat

fixes #2826
This commit is contained in:
Anthony Laibe 2021-07-15 10:17:53 +02:00 committed by Iuri Matias
parent c1a6e57ca6
commit 9d4fa890b4
1 changed files with 3 additions and 0 deletions

View File

@ -85,6 +85,9 @@ proc handleChatEvents(self: ChatController) =
# Do not add community chats to the normal chat list
elif channel.chat.chatType != ChatType.Profile and channel.chat.chatType != status_chat.ChatType.CommunityChat:
discard self.view.channelView.chats.addChatItemToList(channel.chat)
if channel.chat.chatType == status_chat.ChatType.CommunityChat:
self.view.communities.updateCommunityChat(channel.chat)
self.view.asyncMessageLoad(channel.chat.id)
self.status.events.on("chatsLoaded") do(e:Args):