1
0
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:
Šimon Brandner
2022-05-02 03:38:36 +02:00
committed by GitHub
parent d294dad04d
commit 3a245a0cbe
4 changed files with 4 additions and 12 deletions

View File

@@ -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);