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:
parent
c2fd090d7d
commit
d667c22171
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue