mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: prevents input to reset at wrong moment (#24536)
Before this fix we would reset the input two times: - right before sending message - and after it's been sent The second one is actually not necessary, and more over with the server delay the user could have started typing a new message and that would clear it.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user