Use the pagination token to see when we've reached the room's birth
parent
5d44de9e08
commit
fae629ea65
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue