mirror of
https://github.com/element-hq/element-web
synced 2024-11-28 12:28:50 +03:00
Rename returned completion states to be something sensible
This commit is contained in:
parent
0f348a7c78
commit
28f4752c5b
1 changed files with 3 additions and 3 deletions
|
@ -37,7 +37,7 @@ import { _t } from './languageHandler';
|
|||
*/
|
||||
function inviteMultipleToRoom(roomId, addrs) {
|
||||
const inviter = new MultiInviter(roomId);
|
||||
return inviter.invite(addrs).then(addrs => Promise.resolve({addrs, inviter}));
|
||||
return inviter.invite(addrs).then(states => Promise.resolve({states, inviter}));
|
||||
}
|
||||
|
||||
export function showStartChatInviteDialog() {
|
||||
|
@ -119,7 +119,7 @@ function _onStartChatFinished(shouldInvite, addrs) {
|
|||
room = MatrixClientPeg.get().getRoom(roomId);
|
||||
return inviteMultipleToRoom(roomId, addrTexts);
|
||||
}).then((result) => {
|
||||
return _showAnyInviteErrors(result.addrs, room, result.inviter);
|
||||
return _showAnyInviteErrors(result.states, room, result.inviter);
|
||||
}).catch((err) => {
|
||||
console.error(err.stack);
|
||||
const ErrorDialog = sdk.getComponent("dialogs.ErrorDialog");
|
||||
|
@ -139,7 +139,7 @@ function _onRoomInviteFinished(roomId, shouldInvite, addrs) {
|
|||
// Invite new users to a room
|
||||
inviteMultipleToRoom(roomId, addrTexts).then((result) => {
|
||||
const room = MatrixClientPeg.get().getRoom(roomId);
|
||||
return _showAnyInviteErrors(result.addrs, room, result.inviter);
|
||||
return _showAnyInviteErrors(result.states, room, result.inviter);
|
||||
}).catch((err) => {
|
||||
console.error(err.stack);
|
||||
const ErrorDialog = sdk.getComponent("dialogs.ErrorDialog");
|
||||
|
|
Loading…
Reference in a new issue