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.
|
||||
const inviter = new MultiInviter(roomId);
|
||||
await inviter.invite([member.userId]).then(() => {
|
||||
if (inviter.getCompletionState(userId) !== "invited")
|
||||
throw new Error(inviter.getErrorText(userId));
|
||||
if (inviter.getCompletionState(member.userId) !== "invited")
|
||||
throw new Error(inviter.getErrorText(member.userId));
|
||||
});
|
||||
} catch (err) {
|
||||
const ErrorDialog = sdk.getComponent('dialogs.ErrorDialog');
|
||||
|
|
Loading…
Reference in New Issue