Skip to content

A platform for community discussion. Free, open, simple.

FIX: correctly reset active message on destroy (#23844)

Joffrey JAFFEUXf13f2fecfe3f
diff --git a/plugins/chat/assets/javascripts/discourse/components/chat-message.gjs b/plugins/chat/assets/javascripts/discourse/components/chat-message.gjs
index 9f6d3707804..5793692218d 100644
--- a/plugins/chat/assets/javascripts/discourse/components/chat-message.gjs
+++ b/plugins/chat/assets/javascripts/discourse/components/chat-message.gjs
@@ -313,6 +313,7 @@ export default class ChatMessage extends Component {
cancel(this._makeMessageActiveHandler);
cancel(this._debounceDecorateCookedMessageHandler);
this.#teardownMentionedUsers();
+ this.chat.activeMessage = null;
}
@action