mirror of
https://github.com/cinnyapp/cinny.git
synced 2025-11-09 08:40:29 +03:00
WIP - support room version 12
This commit is contained in:
parent
acc7d4ff56
commit
7487e5322b
5 changed files with 79 additions and 18 deletions
|
|
@ -82,6 +82,10 @@ export function PermissionGroups({ powerLevels, permissionGroups }: PermissionGr
|
|||
permissionUpdate.forEach((power, location) =>
|
||||
applyPermissionPower(draftPowerLevels, location, power)
|
||||
);
|
||||
|
||||
// eslint-disable-next-line no-param-reassign
|
||||
delete draftPowerLevels['in.cinny.creators'];
|
||||
|
||||
return draftPowerLevels;
|
||||
});
|
||||
await mx.sendStateEvent(room.roomId, StateEvent.RoomPowerLevels as any, editedPowerLevels);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue