add redact PL check
This commit is contained in:
parent
15d02458ab
commit
b80bd557dd
3 changed files with 16 additions and 3 deletions
|
|
@ -50,6 +50,10 @@ class PowerLevelController extends Notifier<bool> {
|
|||
};
|
||||
}
|
||||
|
||||
if (config.eventType == "m.room.redaction") {
|
||||
return userLevel >= (event.content["redact"] as int? ?? 50);
|
||||
}
|
||||
|
||||
final requiredLevel = events.containsKey(config.eventType)
|
||||
? (events[config.eventType] as int)
|
||||
: (config.isStateEvent
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue