fix: fix leaving a channel with no messages

This commit is contained in:
Jonathan Rainville 2020-12-29 13:29:27 -05:00 committed by Iuri Matias
parent 37edfed446
commit a0c1b1552d
1 changed files with 3 additions and 2 deletions

View File

@ -423,6 +423,7 @@ QtObject:
proc removeChat*(self: ChatsView, chatId: string) =
discard self.chats.removeChatItemFromList(chatId)
if (self.messageList.hasKey(chatId)):
self.messageList[chatId].delete
self.messageList.del(chatId)