Function ruma::state_res::event_auth::can_send_event[][src]

pub fn can_send_event<E>(
    event: &Arc<E>,
    auth_events: &BTreeMap<(EventType, String), Arc<E>>
) -> bool where
    E: Event
This is supported on crate feature state-res only.
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.