support joining with a room alias for rest session
This commit is contained in:
parent
2be413ba6d
commit
ff20bc783d
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue