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
Fix jump to bottom button being always displayed in non-overflowing timelines (#8460)
This commit is contained in:
@@ -1043,7 +1043,7 @@ class TimelinePanel extends React.Component<IProps, IState> {
|
||||
/* return true if the content is fully scrolled down and we are
|
||||
* at the end of the live timeline.
|
||||
*/
|
||||
public isAtEndOfLiveTimeline = (): boolean => {
|
||||
public isAtEndOfLiveTimeline = (): boolean | undefined => {
|
||||
return this.messagePanel.current?.isAtBottom()
|
||||
&& this.timelineWindow
|
||||
&& !this.timelineWindow.canPaginate(EventTimeline.FORWARDS);
|
||||
|
||||
Reference in New Issue
Block a user