fix(chat_section): fix link activation for channels inside categories

Fixes #9974
This commit is contained in:
Jonathan Rainville 2023-03-21 14:30:54 -04:00
parent 417f206d4d
commit 3008e56455
1 changed files with 1 additions and 4 deletions

View File

@ -617,10 +617,7 @@ method switchToChannel*(self: Module, channelName: string) =
let chats = self.controller.getAllChats(self.controller.getMySectionId())
for c in chats:
if c.name == channelName:
if c.categoryId == "":
self.setActiveItem(c.id)
else:
self.setActiveItem(c.categoryId)
self.setActiveItem(c.id)
return
method doesCatOrChatExist*(self: Module, id: string): bool =