mirror of
https://github.com/element-hq/element-web
synced 2024-11-28 20:38:55 +03:00
Remove redundant 'waiting_for_paginate'
This commit is contained in:
parent
a863839063
commit
ee0f0e332a
1 changed files with 0 additions and 2 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue