From 28f4752c5b1672ef124743f30c6a4ac22aa29c91 Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Wed, 5 Dec 2018 11:27:48 -0700 Subject: [PATCH] Rename returned completion states to be something sensible --- src/RoomInvite.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/RoomInvite.js b/src/RoomInvite.js index 32c521bb48..3547b9195f 100644 --- a/src/RoomInvite.js +++ b/src/RoomInvite.js @@ -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");