mirror of
https://github.com/element-hq/element-web
synced 2024-11-25 10:45:51 +03:00
fix the lint fix
This commit is contained in:
parent
4b9a29cb60
commit
15bbf3a999
1 changed files with 2 additions and 2 deletions
|
@ -50,7 +50,7 @@ module.exports = class RestSession {
|
|||
|
||||
async join(roomIdOrAlias) {
|
||||
this.log.step(`joins ${roomIdOrAlias}`);
|
||||
const roomId = await this._post(`/join/${encodeURIComponent(roomIdOrAlias)}`).room_id;
|
||||
const roomId = (await this._post(`/join/${encodeURIComponent(roomIdOrAlias)}`)).room_id;
|
||||
this.log.done();
|
||||
const room = new RestRoom(this, roomId, this.log);
|
||||
this._rooms[roomId] = room;
|
||||
|
@ -86,7 +86,7 @@ module.exports = class RestSession {
|
|||
body.topic = options.topic;
|
||||
}
|
||||
|
||||
const roomId = await this._post(`/createRoom`, body).room_id;
|
||||
const roomId = (await this._post(`/createRoom`, body)).room_id;
|
||||
this.log.done();
|
||||
return new RestRoom(this, roomId, this.log);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue