canRedact property

bool get canRedact

The level required to redact an event.

Implementation

bool get canRedact =>
    (getState(EventTypes.RoomPowerLevels)?.content.tryGet<int>('redact') ??
        50) <=
    ownPowerLevel;