mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-26 02:18:25 +08:00
support setting the display name on rest session
This commit is contained in:
parent
afc678fea0
commit
3c5e73d644
@ -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 New Issue
Block a user