Skip to main content

check_room_power_levels

Function check_room_power_levels 

Source
fn check_room_power_levels<Creators, Pdu>(
    room_power_levels_event: &RoomPowerLevelsEvent<Pdu>,
    current_room_power_levels_event: Option<&RoomPowerLevelsEvent<Pdu>>,
    rules: &AuthorizationRules,
    sender_power_level: impl Into<UserPowerLevel>,
    room_creators: Creators,
) -> Result
where Creators: Iterator<Item = OwnedUserId> + Clone, Pdu: Event,
Expand description

Check whether the given event passes the m.room.power_levels authorization rules.