Function ruma_state_res::event_auth::get_named_level[][src]

pub fn get_named_level<E: Event>(
    auth_events: &StateMap<Arc<E>>,
    name: &str,
    default: i64
) -> i64
Expand description

Helper function to fetch a field, name, from a “m.room.power_level” event’s content. or return default if no power level event is found or zero if no field matches name.