mirror of
https://github.com/element-hq/element-web
synced 2024-11-24 10:15:43 +03:00
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) {
|
||||
const {room_id} = await this._post(`/rooms/${roomId}/join`);
|
||||
return new RestRoom(this, room_id);
|
||||
}
|
||||
|
||||
|
||||
async createRoom(name, options) {
|
||||
const body = {
|
||||
name,
|
||||
|
|
Loading…
Reference in a new issue