fix(chat_section): fix link activation for channels inside categories
Fixes #9974
This commit is contained in:
parent
417f206d4d
commit
3008e56455
|
@ -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 =
|
||||
|
|
Loading…
Reference in New Issue