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

Fix ability to invite existing mx users
This commit is contained in:
Luke Barnard 2017-09-28 11:27:07 +01:00 committed by GitHub
commit f3d155b62c

View file

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