Remember to load new timeline events

Fixes a bug where we wouldn't load new timeline events if they arrived when we
were scrolled up (https://github.com/vector-im/vector-web/issues/1367)
This commit is contained in:
Richard van der Hoff 2016-04-11 14:05:04 +01:00
parent 825e6702ef
commit e051d1528c
2 changed files with 88 additions and 0 deletions

View file

@ -264,6 +264,10 @@ var TimelinePanel = React.createClass({
// updates from pagination will happen when the paginate completes.
if (toStartOfTimeline || !data || !data.liveEvent) return;
// even if we previously gave up forward-paginating, it's worth
// having another go now.
this.setState({canForwardPaginate: true});
if (!this.refs.messagePanel) return;
if (!this.refs.messagePanel.getScrollState().stuckAtBottom) return;