fix(@desktop/chat): Going from communities to chat reopen latest opened

chat

fixes #3195
This commit is contained in:
Anthony Laibe 2021-08-12 15:40:19 +02:00 committed by Iuri Matias
parent 28a4362b64
commit d3fdd4a575

View File

@ -163,6 +163,9 @@ QtObject:
let selectedChannel = self.getChannelById(channel)
self.activeChannel.setChatItem(selectedChannel)
if not self.communities.activeCommunity.active:
self.previousActiveChannelIndex = self.chats.chats.findIndexById(self.activeChannel.id)
discard self.status.chat.markAllChannelMessagesRead(self.activeChannel.id)
self.activeChannelChanged()