fix(chat_section): fix changing active chat on leaving another group chat (#14020)
* fix(chat_section): fix changing active chat on leaving another group chat Fixes #9147
This commit is contained in:
parent
9ed38bddb7
commit
8e0f5f9487
|
@ -738,6 +738,8 @@ method onCommunityChannelDeletedOrChatLeft*(self: Module, chatId: string) =
|
|||
self.view.chatsModel().removeItemById(chatId)
|
||||
self.removeSubmodule(chatId)
|
||||
|
||||
let activeChatId = self.controller.getActiveChatId()
|
||||
if chatId == activeChatId:
|
||||
self.setFirstChannelAsActive()
|
||||
|
||||
proc refreshHiddenBecauseNotPermittedState(self: Module) =
|
||||
|
|
Loading…
Reference in New Issue