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:
Joffrey JAFFEUX 2023-11-24 01:59:48 +01:00 committed by GitHub
parent c2fd090d7d
commit d667c22171
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 2 deletions

View File

@ -518,7 +518,6 @@ export default class ChatChannel extends Component {
popupAjaxError(e); popupAjaxError(e);
} finally { } finally {
message.editing = false; message.editing = false;
this.resetComposerMessage();
this.pane.sending = false; this.pane.sending = false;
} }
} }
@ -553,7 +552,6 @@ export default class ChatChannel extends Component {
} catch (error) { } catch (error) {
this._onSendError(message.id, error); this._onSendError(message.id, error);
} finally { } finally {
this.resetComposerMessage();
this.pane.sending = false; this.pane.sending = false;
} }
} }