Don't scroll to bottom when executing non-message slash commands (#7793)

pull/21833/head
Michael Telatynski 2022-02-14 23:36:06 +00:00 committed by GitHub
parent cfa6e266cd
commit 401e5127f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -461,7 +461,7 @@ export class SendMessageComposer extends React.Component<ISendMessageComposerPro
this.editorRef.current?.clearUndoHistory();
this.editorRef.current?.focus();
this.clearStoredEditorState();
if (SettingsStore.getValue("scrollToBottomOnMessageSent")) {
if (shouldSend && SettingsStore.getValue("scrollToBottomOnMessageSent")) {
dis.dispatch({
action: "scroll_to_bottom",
timelineRenderingType: this.context.timelineRenderingType,