mirror of
https://github.com/element-hq/element-web.git
synced 2024-11-30 23:31:28 +03:00
Fix inviting multiple people to a room
Removes the promise notify as bluebird doesn't support it. It's also not used anywhere now. Fixes https://github.com/vector-im/riot-web/issues/4614
This commit is contained in:
parent
ee5117525c
commit
b261c89a63
1 changed files with 0 additions and 5 deletions
|
@ -36,10 +36,6 @@ export default class MultiInviter {
|
||||||
* Invite users to this room. This may only be called once per
|
* Invite users to this room. This may only be called once per
|
||||||
* instance of the class.
|
* instance of the class.
|
||||||
*
|
*
|
||||||
* The promise is given progress when each address completes, with an
|
|
||||||
* object argument with each completed address with value either
|
|
||||||
* 'invited' or 'error'.
|
|
||||||
*
|
|
||||||
* @param {array} addresses Array of addresses to invite
|
* @param {array} addresses Array of addresses to invite
|
||||||
* @returns {Promise} Resolved when all invitations in the queue are complete
|
* @returns {Promise} Resolved when all invitations in the queue are complete
|
||||||
*/
|
*/
|
||||||
|
@ -111,7 +107,6 @@ export default class MultiInviter {
|
||||||
if (this._canceled) { return; }
|
if (this._canceled) { return; }
|
||||||
|
|
||||||
this.completionStates[addr] = 'invited';
|
this.completionStates[addr] = 'invited';
|
||||||
this.deferred.notify(this.completionStates);
|
|
||||||
|
|
||||||
this._inviteMore(nextIndex + 1);
|
this._inviteMore(nextIndex + 1);
|
||||||
}, (err) => {
|
}, (err) => {
|
||||||
|
|
Loading…
Reference in a new issue