Fix jump to bottom button being always displayed in non-overflowing timelines (#8460)

This commit is contained in:
Šimon Brandner
2022-05-01 19:38:36 -06:00
committed by GitHub
parent d294dad04d
commit 3a245a0cbe
4 changed files with 4 additions and 12 deletions
+1 -1
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);