Merge pull request #585 from matrix-org/dbkr/fix_exception_roomdir

Fix exception when clearing room dir search
pull/21833/head
Richard van der Hoff 2016-12-06 15:58:07 +00:00 committed by GitHub
commit 587325b36c
1 changed files with 3 additions and 0 deletions

View File

@ -402,6 +402,9 @@ module.exports = React.createClass({
q.finally(fillPromise, () => {
this._pendingFillRequests[dir] = false;
}).then((hasMoreResults) => {
if (this.unmounted) {
return;
}
// Unpaginate once filling is complete
this._checkUnfillState(!backwards);