From 9d4fa890b41f327d2cf71dfaa81e3291efbd3ae6 Mon Sep 17 00:00:00 2001 From: Anthony Laibe Date: Thu, 15 Jul 2021 10:17:53 +0200 Subject: [PATCH] fix(@desktop/communities): update communities chat fixes #2826 --- src/app/chat/event_handling.nim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/app/chat/event_handling.nim b/src/app/chat/event_handling.nim index 6d046005ad..854036e584 100644 --- a/src/app/chat/event_handling.nim +++ b/src/app/chat/event_handling.nim @@ -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):