FIX: ensures side panel is closed (#24822)

When navigating to /chat/threads we were not closing the side panel. It would not show as the route doesn't support it, but after if we would open a channel from the sidebar it would open the channel with an empty opened sidepanel .
This commit is contained in:
Joffrey JAFFEUX 2023-12-11 16:35:18 +01:00 committed by GitHub
parent dc8c6b8958
commit a7a4aaa6b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -3,8 +3,10 @@ import DiscourseRoute from "discourse/routes/discourse";
export default class ChatChannelThreads extends DiscourseRoute {
@service chat;
@service chatStateManager;
activate() {
this.chat.activeChannel = null;
this.chatStateManager.closeSidePanel();
}
}