support setting the display name on rest session
This commit is contained in:
parent
afc678fea0
commit
3c5e73d644
1 changed files with 6 additions and 1 deletions
|
@ -57,12 +57,17 @@ module.exports = class RestSession {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
async setDisplayName(displayName) {
|
||||||
|
await this._put(`/profile/${this.credentials.userId}/displayname`, {
|
||||||
|
displayname: displayName
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
async join(roomId) {
|
async join(roomId) {
|
||||||
const {room_id} = await this._post(`/rooms/${roomId}/join`);
|
const {room_id} = await this._post(`/rooms/${roomId}/join`);
|
||||||
return new RestRoom(this, room_id);
|
return new RestRoom(this, room_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
async createRoom(name, options) {
|
async createRoom(name, options) {
|
||||||
const body = {
|
const body = {
|
||||||
name,
|
name,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue