From 22237e440785e36f0b807d573f9d8488fdc3141c Mon Sep 17 00:00:00 2001 From: Joffrey JAFFEUX Date: Wed, 22 May 2024 23:38:12 +0200 Subject: [PATCH] FIX: set active thread on correct channel (#27141) activeChannel is something we should use less and less as it could not exist, in this case we have the channel right here in the function so there's no reason to reach for `this.chat.activeChannel`. --- .../assets/javascripts/discourse/routes/chat-channel-thread.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/chat/assets/javascripts/discourse/routes/chat-channel-thread.js b/plugins/chat/assets/javascripts/discourse/routes/chat-channel-thread.js index 56a4f56b3fa..79a106f0374 100644 --- a/plugins/chat/assets/javascripts/discourse/routes/chat-channel-thread.js +++ b/plugins/chat/assets/javascripts/discourse/routes/chat-channel-thread.js @@ -32,7 +32,7 @@ export default class ChatChannelThread extends DiscourseRoute { return; } - this.chat.activeChannel.activeThread = thread; + channel.activeThread = thread; } @action