Function ruma_state_res::event_auth::can_send_event[][src]

pub fn can_send_event<E: Event>(
    event: &Arc<E>,
    auth_events: &StateMap<Arc<E>>
) -> bool
Expand description

Is the user allowed to send a specific event based on the rooms power levels. Does the event have the correct userId as it’s state_key if it’s not the “” state_key.