Function ruma_state_res::event_auth::can_send_event [−][src]
pub fn can_send_event<E, F>(event: &Arc<E>, fetch_state: F) -> bool where
E: Event,
F: Fn(&EventType, &str) -> Option<Arc<E>>,
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.