Merge pull request #1437 from matrix-org/lukebarnard1-patch-fix-inviting

Fix ability to invite existing mx users
pull/21833/head
Luke Barnard 2017-09-28 11:27:07 +01:00 committed by GitHub
commit f3d155b62c
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ export function inviteToRoom(roomId, addr) {
if (addrType == 'email') { if (addrType == 'email') {
return MatrixClientPeg.get().inviteByEmail(roomId, addr); return MatrixClientPeg.get().inviteByEmail(roomId, addr);
} else if (addrType == 'mx') { } else if (addrType == 'mx-user-id') {
return MatrixClientPeg.get().invite(roomId, addr); return MatrixClientPeg.get().invite(roomId, addr);
} else { } else {
throw new Error('Unsupported address'); throw new Error('Unsupported address');