FIX: ensures active message is cleared on threads opening (#25337)

No test as this is a very specific edge case, already hard to repro manually.
This commit is contained in:
Joffrey JAFFEUX
2024-01-19 16:34:24 +01:00
committed by GitHub
parent 9365d8b544
commit 3bd88d7586

View File

@ -6,6 +6,7 @@ export default class ChatChannelThreads extends DiscourseRoute {
@service router;
@service chatThreadListPane;
@service chatStateManager;
@service chat;
beforeModel(transition) {
const channel = this.modelFor("chat.channel");
@ -19,6 +20,11 @@ export default class ChatChannelThreads extends DiscourseRoute {
this.chatStateManager.openSidePanel();
}
@action
activate() {
this.chat.activeMessage = null;
}
@action
willTransition(transition) {
if (