From 402ac39fa2b8d5bc014c8dd4597f231b43abeb9d Mon Sep 17 00:00:00 2001 From: Jan Cernik <66427541+jancernik@users.noreply.github.com> Date: Fri, 14 Jul 2023 07:22:18 -0300 Subject: [PATCH] FIX: Close modal after moving message to channel (#22601) --- .../discourse/components/chat/modal/move-message-to-channel.js | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/chat/assets/javascripts/discourse/components/chat/modal/move-message-to-channel.js b/plugins/chat/assets/javascripts/discourse/components/chat/modal/move-message-to-channel.js index ca4ff3afbd4..071a59a00f6 100644 --- a/plugins/chat/assets/javascripts/discourse/components/chat/modal/move-message-to-channel.js +++ b/plugins/chat/assets/javascripts/discourse/components/chat/modal/move-message-to-channel.js @@ -55,6 +55,7 @@ export default class ChatModalMoveMessageToChannel extends Component { destination_channel_id: this.destinationChannelId, }) .then((response) => { + this.args.closeModal(); this.router.transitionTo( "chat.channel.near-message", "-",