Fix jump to bottom button being always displayed in non-overflowing timelines (#8460)
This commit is contained in:
parent
d294dad04d
commit
3a245a0cbe
4 changed files with 4 additions and 12 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue