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

pull/1/head
David Baker 2015-06-25 15:58:51 +01:00
parent 5d44de9e08
commit fae629ea65
1 changed files with 1 additions and 1 deletions

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;