diff --git a/src/controllers/organisms/RoomView.js b/src/controllers/organisms/RoomView.js index 2629e33b04..540ac11933 100644 --- a/src/controllers/organisms/RoomView.js +++ b/src/controllers/organisms/RoomView.js @@ -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});