Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Refactor custom logic to use the shared canResetTimeline() (#10403)
Browse files Browse the repository at this point in the history
Split out from #8354 (comment)
  • Loading branch information
MadLittleMods committed Mar 20, 2023
1 parent 28f217b commit 5b2e12c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/structures/TimelinePanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
};
Expand Down

0 comments on commit 5b2e12c

Please sign in to comment.