You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-12-05 15:22:09 +03:00
Refactor custom logic to use the shared canResetTimeline() (#10403)
Split out from https://github.com/matrix-org/matrix-react-sdk/pull/8354#discussion_r852611407
This commit is contained in:
@@ -773,7 +773,7 @@ class TimelinePanel extends React.Component<IProps, IState> {
|
||||
private onRoomTimelineReset = (room: Room, timelineSet: EventTimelineSet): void => {
|
||||
if (timelineSet !== this.props.timelineSet) return;
|
||||
|
||||
if (this.messagePanel.current && this.messagePanel.current.isAtBottom()) {
|
||||
if (this.canResetTimeline()) {
|
||||
this.loadTimeline();
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user