You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-20 16:22:28 +03:00
support joining with a room alias for rest session
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user