1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-13 08:02:38 +03:00

Replace rest of defer usages using small shim. Add homebrew promise utils

(cherry picked from commit 6850c14739)
This commit is contained in:
Michael Telatynski
2019-11-12 11:45:28 +00:00
parent 217dfc3eed
commit 2ea239d192
4 changed files with 53 additions and 4 deletions

View File

@@ -24,6 +24,7 @@ import {_t} from "../languageHandler";
import sdk from "../index";
import Modal from "../Modal";
import SettingsStore from "../settings/SettingsStore";
import {defer} from "./promise";
/**
* Invites multiple addresses to a room or group, handling rate limiting from the server
@@ -71,7 +72,7 @@ export default class MultiInviter {
};
}
}
this.deferred = Promise.defer();
this.deferred = defer();
this._inviteMore(0);
return this.deferred.promise;