mirror of
https://github.com/vector-im/element-web.git
synced 2024-12-02 09:26:39 +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) {
|
||||
const {room_id} = await this._post(`/rooms/${roomId}/join`);
|
||||
async join(roomIdOrAlias) {
|
||||
const {room_id} = await this._post(`/join/${encodeURIComponent(roomIdOrAlias)}`);
|
||||
return new RestRoom(this, room_id);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user