You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-12-11 17:57:29 +03:00
Fix timeline scrolling when sending threads (#6974)
Fix https://github.com/vector-im/element-web/issues/19412
This commit is contained in:
@@ -841,7 +841,9 @@ export class RoomView extends React.Component<IRoomProps, IRoomState> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
case "scroll_to_bottom":
|
case "scroll_to_bottom":
|
||||||
this.messagePanel?.jumpToLiveTimeline();
|
if (payload.timelineRenderingType === this.context.timelineRenderingType) {
|
||||||
|
this.messagePanel?.jumpToLiveTimeline();
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -502,7 +502,10 @@ export class SendMessageComposer extends React.Component<ISendMessageComposerPro
|
|||||||
this.editorRef.current?.focus();
|
this.editorRef.current?.focus();
|
||||||
this.clearStoredEditorState();
|
this.clearStoredEditorState();
|
||||||
if (SettingsStore.getValue("scrollToBottomOnMessageSent")) {
|
if (SettingsStore.getValue("scrollToBottomOnMessageSent")) {
|
||||||
dis.dispatch({ action: "scroll_to_bottom" });
|
dis.dispatch({
|
||||||
|
action: "scroll_to_bottom",
|
||||||
|
timelineRenderingType: this.context.timelineRenderingType,
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user