fix: fix missing channel identifier in new community chats

Fixes #2211
This commit is contained in:
Jonathan Rainville 2021-04-09 13:36:31 -04:00 committed by Iuri Matias
parent ba500e5f73
commit 438517a610
1 changed files with 2 additions and 0 deletions

View File

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