mirror of
https://github.com/cinnyapp/cinny.git
synced 2025-02-28 08:03:05 +01:00
update setPowerLevel usage
This commit is contained in:
parent
b5dbb018a3
commit
f8053c8eac
1 changed files with 1 additions and 5 deletions
|
@ -244,11 +244,7 @@ async function unignore(mx, userIds) {
|
|||
}
|
||||
|
||||
async function setPowerLevel(mx, roomId, userId, powerLevel) {
|
||||
const room = mx.getRoom(roomId);
|
||||
|
||||
const powerlevelEvent = room.currentState.getStateEvents('m.room.power_levels')[0];
|
||||
|
||||
const result = await mx.setPowerLevel(roomId, userId, powerLevel, powerlevelEvent);
|
||||
const result = await mx.setPowerLevel(roomId, userId, powerLevel);
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue