Merge pull request #5621 from SimonBrandner/fix-jump-on-reaction

Don't jump to bottom on reaction
pull/21833/head
J. Ryan Stinnett 2021-02-05 14:28:25 +00:00 提交者 GitHub
當前提交 295cf12cf8
沒有發現已知的金鑰在資料庫的簽署中
GPG 金鑰 ID: 4AEE18F83AFDEB23
共有 2 個檔案被更改,包括 2 行新增1 行删除

查看文件

@ -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;
}

查看文件

@ -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() {