You've already forked matrix-react-sdk
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user