Support room version 12 and the "creator power level"
This commit is contained in:
parent
f804e0377b
commit
c36deef7e2
13 changed files with 351 additions and 113 deletions
|
|
@ -723,6 +723,15 @@ export default {
|
|||
}
|
||||
},
|
||||
|
||||
revokeAdmin(roomId, userId) {
|
||||
if (this.matrixClient && roomId && userId) {
|
||||
const room = this.getRoom(roomId);
|
||||
if (room && room.currentState) {
|
||||
this.matrixClient.setPowerLevel(roomId, userId, 0);
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
makeModerator(roomId, userId) {
|
||||
if (this.matrixClient && roomId && userId) {
|
||||
const room = this.getRoom(roomId);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue