Use scrollToBottomOnMessageSent

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
Š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

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);