mirror of
https://github.com/element-hq/element-web
synced 2024-11-26 19:26:04 +03:00
Use scrollToBottomOnMessageSent
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
parent
1387c9f94d
commit
361420bf68
1 changed files with 3 additions and 1 deletions
|
@ -403,8 +403,10 @@ export default class SendMessageComposer extends React.Component {
|
||||||
this._editorRef.clearUndoHistory();
|
this._editorRef.clearUndoHistory();
|
||||||
this._editorRef.focus();
|
this._editorRef.focus();
|
||||||
this._clearStoredEditorState();
|
this._clearStoredEditorState();
|
||||||
|
if (SettingsStore.getValue("scrollToBottomOnMessageSent")) {
|
||||||
dis.dispatch({action: "scroll_to_bottom"});
|
dis.dispatch({action: "scroll_to_bottom"});
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
componentWillUnmount() {
|
componentWillUnmount() {
|
||||||
dis.unregister(this.dispatcherRef);
|
dis.unregister(this.dispatcherRef);
|
||||||
|
|
Loading…
Reference in a new issue