Skip to content

A platform for community discussion. Free, open, simple.

FIX: prevents input to reset at wrong moment (#24536)

Joffrey JAFFEUXd667c2217106
diff --git a/plugins/chat/assets/javascripts/discourse/components/chat-channel.gjs b/plugins/chat/assets/javascripts/discourse/components/chat-channel.gjs
index 6c007145380..27bb34b7b21 100644
--- a/plugins/chat/assets/javascripts/discourse/components/chat-channel.gjs
+++ b/plugins/chat/assets/javascripts/discourse/components/chat-channel.gjs
@@ -518,7 +518,6 @@ export default class ChatChannel extends Component {
popupAjaxError(e);
} finally {
message.editing = false;
- this.resetComposerMessage();
this.pane.sending = false;
}
}
@@ -553,7 +552,6 @@ export default class ChatChannel extends Component {
} catch (error) {
this._onSendError(message.id, error);
} finally {
- this.resetComposerMessage();
this.pane.sending = false;
}
}