mirror of https://github.com/vector-im/riot-web
support joining with a room alias for rest session
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