mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
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:
parent
9365d8b544
commit
3bd88d7586
@ -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 (
|
||||
|
Loading…
Reference in New Issue
Block a user