Merge pull request #2956 from matrix-org/t3chguy/fix_memberinfo_invite
Fix invite via MemberInfopull/21833/head
commit
99e2ac7255
|
@ -735,8 +735,8 @@ module.exports = withMatrixClient(React.createClass({
|
||||||
// we're only inviting one user.
|
// we're only inviting one user.
|
||||||
const inviter = new MultiInviter(roomId);
|
const inviter = new MultiInviter(roomId);
|
||||||
await inviter.invite([member.userId]).then(() => {
|
await inviter.invite([member.userId]).then(() => {
|
||||||
if (inviter.getCompletionState(userId) !== "invited")
|
if (inviter.getCompletionState(member.userId) !== "invited")
|
||||||
throw new Error(inviter.getErrorText(userId));
|
throw new Error(inviter.getErrorText(member.userId));
|
||||||
});
|
});
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
const ErrorDialog = sdk.getComponent('dialogs.ErrorDialog');
|
const ErrorDialog = sdk.getComponent('dialogs.ErrorDialog');
|
||||||
|
|
Loading…
Reference in New Issue