Make invited direct chat user admin
This commit is contained in:
parent
581efefb3a
commit
ab51e3dc95
1 changed files with 1 additions and 0 deletions
|
|
@ -770,6 +770,7 @@ export default {
|
||||||
return this.matrixClient
|
return this.matrixClient
|
||||||
.createRoom(createRoomOptions)
|
.createRoom(createRoomOptions)
|
||||||
.then(({ room_id, room_alias }) => {
|
.then(({ room_id, room_alias }) => {
|
||||||
|
this.makeAdmin(room_id, userId); // Make the other user an equal
|
||||||
resolve(this.getRoom(room_alias || room_id));
|
resolve(this.getRoom(room_alias || room_id));
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue