mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-11 06:47:01 +00:00
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…
x
Reference in New Issue
Block a user