Don't jump to bottom on reaction

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
Šimon Brandner 2021-02-05 15:15:20 +01:00
parent 7489011ab7
commit 69e81119e9
No known key found for this signature in database
GPG key ID: 9760693FDD98A790
2 changed files with 2 additions and 1 deletions

View file

@ -229,7 +229,7 @@ export default class MessagePanel extends React.Component {
onAction = (payload) => {
switch (payload.action) {
case "message_sent":
case "scroll_to_bottom":
this.scrollToBottom();
break;
}

View file

@ -403,6 +403,7 @@ export default class SendMessageComposer extends React.Component {
this._editorRef.clearUndoHistory();
this._editorRef.focus();
this._clearStoredEditorState();
dis.dispatch({action: "scroll_to_bottom"});
}
componentWillUnmount() {