Skip to main content

Module stripped_state

Module stripped_state 

Source

StructsΒ§

Cell πŸ”’
The cell an entry names, borrowed where its JSON needs no unescaping.

EnumsΒ§

StrippedCreateVerdict
MSC4311 verdict for the create event carried in federated stripped state.

FunctionsΒ§

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_member_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.

Type AliasesΒ§

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.