mirror of
https://github.com/element-hq/element-web.git
synced 2024-12-03 20:36:57 +03:00
Fix timeline scrolling when sending threads (#6974)
Fix https://github.com/vector-im/element-web/issues/19412
This commit is contained in:
parent
98ba3fd6e6
commit
f8b6f13105
2 changed files with 7 additions and 2 deletions
|
@ -841,7 +841,9 @@ export class RoomView extends React.Component<IRoomProps, IRoomState> {
|
|||
}
|
||||
|
||||
case "scroll_to_bottom":
|
||||
this.messagePanel?.jumpToLiveTimeline();
|
||||
if (payload.timelineRenderingType === this.context.timelineRenderingType) {
|
||||
this.messagePanel?.jumpToLiveTimeline();
|
||||
}
|
||||
break;
|
||||
}
|
||||
};
|
||||
|
|
|
@ -502,7 +502,10 @@ export class SendMessageComposer extends React.Component<ISendMessageComposerPro
|
|||
this.editorRef.current?.focus();
|
||||
this.clearStoredEditorState();
|
||||
if (SettingsStore.getValue("scrollToBottomOnMessageSent")) {
|
||||
dis.dispatch({ action: "scroll_to_bottom" });
|
||||
dis.dispatch({
|
||||
action: "scroll_to_bottom",
|
||||
timelineRenderingType: this.context.timelineRenderingType,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue