From 438517a610aaa8b3a14c9939277d338c241a876f Mon Sep 17 00:00:00 2001 From: Jonathan Rainville Date: Fri, 9 Apr 2021 13:36:31 -0400 Subject: [PATCH] fix: fix missing channel identifier in new community chats Fixes #2211 --- src/app/chat/view.nim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/app/chat/view.nim b/src/app/chat/view.nim index dbadbdf7fc..663f72de07 100644 --- a/src/app/chat/view.nim +++ b/src/app/chat/view.nim @@ -442,6 +442,8 @@ QtObject: var chat: Chat = nil if self.status.chat.channels.hasKey(channel): chat = self.status.chat.channels[channel] + else: + chat = self.communities.getChannel(channel) if not self.messageList.hasKey(channel): self.beginInsertRows(newQModelIndex(), self.messageList.len, self.messageList.len) self.messageList[channel] = newChatMessageList(channel, self.status, not chat.isNil and chat.chatType != ChatType.Profile)