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,7 +738,9 @@ method onCommunityChannelDeletedOrChatLeft*(self: Module, chatId: string) =
|
|||
self.view.chatsModel().removeItemById(chatId)
|
||||
self.removeSubmodule(chatId)
|
||||
|
||||
self.setFirstChannelAsActive()
|
||||
let activeChatId = self.controller.getActiveChatId()
|
||||
if chatId == activeChatId:
|
||||
self.setFirstChannelAsActive()
|
||||
|
||||
proc refreshHiddenBecauseNotPermittedState(self: Module) =
|
||||
self.view.refreshAllChannelsAreHiddenBecauseNotPermittedChanged()
|
||||
|
|
Loading…
Reference in New Issue