Don't scroll to bottom when executing non-message slash commands (#7793)
This commit is contained in:
@@ -461,7 +461,7 @@ export class SendMessageComposer extends React.Component<ISendMessageComposerPro
|
|||||||
this.editorRef.current?.clearUndoHistory();
|
this.editorRef.current?.clearUndoHistory();
|
||||||
this.editorRef.current?.focus();
|
this.editorRef.current?.focus();
|
||||||
this.clearStoredEditorState();
|
this.clearStoredEditorState();
|
||||||
if (SettingsStore.getValue("scrollToBottomOnMessageSent")) {
|
if (shouldSend && SettingsStore.getValue("scrollToBottomOnMessageSent")) {
|
||||||
dis.dispatch({
|
dis.dispatch({
|
||||||
action: "scroll_to_bottom",
|
action: "scroll_to_bottom",
|
||||||
timelineRenderingType: this.context.timelineRenderingType,
|
timelineRenderingType: this.context.timelineRenderingType,
|
||||||
|
|||||||
Reference in New Issue
Block a user