From a7a4aaa6b9ca1899453b3ae7ce4b0f5abf619c46 Mon Sep 17 00:00:00 2001 From: Joffrey JAFFEUX Date: Mon, 11 Dec 2023 16:35:18 +0100 Subject: [PATCH] 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 . --- .../chat/assets/javascripts/discourse/routes/chat-threads.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/chat/assets/javascripts/discourse/routes/chat-threads.js b/plugins/chat/assets/javascripts/discourse/routes/chat-threads.js index fa720bcc825..6ce22e523de 100644 --- a/plugins/chat/assets/javascripts/discourse/routes/chat-threads.js +++ b/plugins/chat/assets/javascripts/discourse/routes/chat-threads.js @@ -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(); } }