Skip to main content Module stripped_state Copy item path Source use std::borrow::Cow ; π use std::collections::HashMap ; π use std::collections::hash_map::Entry ; π use ruma::CanonicalJsonObject; π use ruma::CanonicalJsonValue; π use ruma::OwnedRoomId; π use ruma::RoomId; π use ruma::RoomVersionId; π use ruma::UserId; π use ruma::api::federation::membership::RawStrippedState; π use ruma::events::AnyStrippedStateEvent; π use ruma::events::StateEventType; π use ruma::events::StateKey; π use ruma::room_version_rules::RoomIdFormatVersion; π use ruma::serde::JsonObject; π use ruma::serde::Raw; π use serde::Deserialize ; π use serde::Deserialize ; π use tuwunel_core::Result ; π use tuwunel_core::implement; π use tuwunel_matrix::Event ; π use tuwunel_matrix::PduEvent ; π use tuwunel_matrix::event::gen_event_id ; π use super::Service ; π Cell π The cell an entry names, borrowed where its JSON needs no unescaping. StrippedCreateVerdict MSC4311 verdict for the create event carried in federated stripped state. cell π The cell an entry names, borrowed out of the entryβs own JSON. dedup_stripped_state Collapse a federated stripped-state array to one entry per state cell. enforce_stripped_create Whether a non-Valid verdict warrants rejecting an invite or dropping the
event from knock state, given the room version and operator policy. entry_json π into_client_stripped Down-convert a federation stripped-state entry to the 4-field client shape,
reducing a full PDU to content, sender, optional state_key, and type. is_create π is_legacy π occupies_cell π state_cell π v12_room_ids Whether the room version derives room ids from the create event hash
(MSC4291, room version 12 and above), which changes how a create event
binds to its room. without_member Drop the entries occupying a userβs membership cell. Accumulator π The chosen entry per cell, and the entries chosen so far in array order. StateCell π The (type, state_key) pair naming one cell of a roomβs state.