Use scrollToBottomOnMessageSent

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
pull/21833/head
Šimon Brandner 2021-02-26 18:35:45 +01:00
parent 1387c9f94d
commit 361420bf68
No known key found for this signature in database
GPG Key ID: 9760693FDD98A790
1 changed files with 3 additions and 1 deletions

View File

@ -403,8 +403,10 @@ export default class SendMessageComposer extends React.Component {
this._editorRef.clearUndoHistory();
this._editorRef.focus();
this._clearStoredEditorState();
if (SettingsStore.getValue("scrollToBottomOnMessageSent")) {
dis.dispatch({action: "scroll_to_bottom"});
}
}
componentWillUnmount() {
dis.unregister(this.dispatcherRef);