fix: fix leaving a channel with no messages
This commit is contained in:
parent
37edfed446
commit
a0c1b1552d
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue