You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-30 02:21:17 +03:00
Fix exception when clearing room dir search
Needed more isMounted checks after promises return.
This commit is contained in:
@ -402,6 +402,9 @@ module.exports = React.createClass({
|
|||||||
q.finally(fillPromise, () => {
|
q.finally(fillPromise, () => {
|
||||||
this._pendingFillRequests[dir] = false;
|
this._pendingFillRequests[dir] = false;
|
||||||
}).then((hasMoreResults) => {
|
}).then((hasMoreResults) => {
|
||||||
|
if (this.unmounted) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
// Unpaginate once filling is complete
|
// Unpaginate once filling is complete
|
||||||
this._checkUnfillState(!backwards);
|
this._checkUnfillState(!backwards);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user