mirror of
https://github.com/vector-im/element-web.git
synced 2025-08-23 23:41:33 +02:00
Merge pull request #1437 from matrix-org/lukebarnard1-patch-fix-inviting
Fix ability to invite existing mx users
This commit is contained in:
commit
f3d155b62c
@ -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');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user