Use the pagination token to see when we've reached the room's birth

This commit is contained in:
David Baker 2015-06-25 15:58:51 +01:00
parent 5d44de9e08
commit fae629ea65

View file

@ -113,7 +113,7 @@ module.exports = {
fillSpace: function() {
var messageUl = this.refs.messageList.getDOMNode();
if (messageUl.scrollTop < messageUl.clientHeight) {
if (messageUl.scrollTop < messageUl.clientHeight && this.state.room.oldState.paginationToken) {
this.setState({paginating: true});
this.oldScrollHeight = messageUl.scrollHeight;