Function ruma_state_res::event_auth::get_user_power_level[][src]

pub fn get_user_power_level<E: Event>(
    user_id: &UserId,
    auth_events: &StateMap<Arc<E>>
) -> i64
Expand description

Helper function to fetch a users default power level from a “m.room.power_level” event’s users object.