From dd4b2821963133bbb8b23d13e1ae8067ba3ce6c7 Mon Sep 17 00:00:00 2001 From: Joffrey JAFFEUX Date: Wed, 1 Feb 2023 17:45:33 +0100 Subject: [PATCH] FIX: reverts value check when reseting composer value (#20110) This change was made to prevent composer input to be reset randomly during tests but this is causing more issues for now: most notably composer state not being reset when changing channel. This will need a better solution. --- .../assets/javascripts/discourse/components/chat-composer.js | 1 - 1 file changed, 1 deletion(-) diff --git a/plugins/chat/assets/javascripts/discourse/components/chat-composer.js b/plugins/chat/assets/javascripts/discourse/components/chat-composer.js index d9f39fbb7eb..932ca8f84f3 100644 --- a/plugins/chat/assets/javascripts/discourse/components/chat-composer.js +++ b/plugins/chat/assets/javascripts/discourse/components/chat-composer.js @@ -223,7 +223,6 @@ export default Component.extend(TextareaTextManipulation, { this._super(...arguments); if ( - !this.value && !this.editingMessage && this.draft && this.chatChannel?.canModifyMessages(this.currentUser)