ruma::state_res

Function auth_types_for_event

Source
pub fn auth_types_for_event(
    event_type: &TimelineEventType,
    sender: &UserId,
    state_key: Option<&str>,
    content: &RawValue,
) -> Result<Vec<(StateEventType, String)>, Error>
Available on crate feature state-res only.
Expand description

Get the list of [relevant auth event types] required to authorize the event of the given type.

Returns a list of (event_type, state_key) tuples.

ยงErrors

Returns an error if content is not a JSON object.