From ee0f0e332a705773d0776192fdf051b56bf37f07 Mon Sep 17 00:00:00 2001 From: Richard van der Hoff Date: Thu, 10 Dec 2015 22:08:35 +0000 Subject: [PATCH] Remove redundant 'waiting_for_paginate' --- src/components/structures/RoomView.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/components/structures/RoomView.js b/src/components/structures/RoomView.js index 3695859ed1..ea489b326a 100644 --- a/src/components/structures/RoomView.js +++ b/src/components/structures/RoomView.js @@ -295,7 +295,6 @@ module.exports = React.createClass({ }, _paginateCompleted: function() { - this.waiting_for_paginate = false; this.setState({ room: MatrixClientPeg.get().getRoom(this.props.roomId) }); @@ -326,7 +325,6 @@ module.exports = React.createClass({ var cap = Math.min(this.state.messageCap + PAGINATE_SIZE, this.state.room.timeline.length); this.setState({messageCap: cap}); } else { - this.waiting_for_paginate = true; var cap = this.state.messageCap + PAGINATE_SIZE; this.setState({messageCap: cap, paginating: true}); MatrixClientPeg.get().scrollback(this.state.room, PAGINATE_SIZE).finally(this._paginateCompleted).done();