fix: unread count

This commit is contained in:
Richard Ramos 2021-05-28 08:30:48 -04:00 committed by Iuri Matias
parent 44850c7035
commit 0498613d28
1 changed files with 1 additions and 0 deletions

View File

@ -95,6 +95,7 @@ proc handleChatEvents(self: ChatController) =
self.status.events.on("channelLeft") do(e: Args):
let chatId = ChatIdArg(e).chatId
self.view.removeChat(chatId)
self.view.calculateUnreadMessages()
self.view.removeMessagesFromTimeline(chatId)
self.status.events.on("activeChannelChanged") do(e: Args):