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

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

This reverts commit 6850c147
This commit is contained in:
Michael Telatynski
2019-11-12 11:56:43 +00:00
parent f9d6ed63f0
commit 7a512f7299
4 changed files with 4 additions and 53 deletions

View File

@@ -24,7 +24,6 @@ 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
@@ -72,7 +71,7 @@ export default class MultiInviter {
};
}
}
this.deferred = defer();
this.deferred = Promise.defer();
this._inviteMore(0);
return this.deferred.promise;