mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-30 06:21:09 +08:00
support joining with a room alias for rest session
This commit is contained in:
parent
2be413ba6d
commit
ff20bc783d
@ -37,8 +37,8 @@ module.exports = class RestSession {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
async join(roomId) {
|
async join(roomIdOrAlias) {
|
||||||
const {room_id} = await this._post(`/rooms/${roomId}/join`);
|
const {room_id} = await this._post(`/join/${encodeURIComponent(roomIdOrAlias)}`);
|
||||||
return new RestRoom(this, room_id);
|
return new RestRoom(this, room_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user