From 2b7ecee06e4624396214f0dffc7d0c5c34653f09 Mon Sep 17 00:00:00 2001 From: Joffrey JAFFEUX Date: Fri, 17 Nov 2023 18:05:38 +0100 Subject: [PATCH] FIX: correctly highlights message on reply click (#24431) --- .../discourse/components/chat-channel.hbs | 1 + .../spec/system/chat/composer/channel_spec.rb | 15 +++++++++++++++ .../page_objects/chat/components/message.rb | 1 + 3 files changed, 17 insertions(+) diff --git a/plugins/chat/assets/javascripts/discourse/components/chat-channel.hbs b/plugins/chat/assets/javascripts/discourse/components/chat-channel.hbs index f7814be640f..f088d578e9c 100644 --- a/plugins/chat/assets/javascripts/discourse/components/chat-channel.hbs +++ b/plugins/chat/assets/javascripts/discourse/components/chat-channel.hbs @@ -11,6 +11,7 @@ {{did-insert this.didUpdateChannel}} {{did-insert this.addAutoFocusEventListener}} {{will-destroy this.removeAutoFocusEventListener}} + {{did-update this.loadMessages @targetMessageId}} data-id={{@channel.id}} >