Don't try to fill space if we don't have a message wrapper
This commit is contained in:
parent
18c56a171e
commit
be5aaeaad7
1 changed files with 1 additions and 1 deletions
|
@ -201,8 +201,8 @@ module.exports = {
|
|||
},
|
||||
|
||||
fillSpace: function() {
|
||||
if (!this.refs.messageWrapper) return;
|
||||
var messageWrapper = this.refs.messageWrapper.getDOMNode();
|
||||
if (!messageWrapper) return;
|
||||
if (messageWrapper.scrollTop < messageWrapper.clientHeight && this.state.room.oldState.paginationToken) {
|
||||
this.setState({paginating: true});
|
||||
|
||||
|
|
Loading…
Reference in a new issue