Skip to main content

strip_state_unsigned

Function strip_state_unsigned 

Source
fn strip_state_unsigned(
    pdu: PduEvent,
    sender_user: &UserId,
    in_timeline: impl Fn(&PduEvent) -> bool,
) -> PduEvent
Expand description

Strips the unsigned fields a state section does not serve.

Fields private to the sender go unless the requester sent the event. The stored prev_content/prev_sender pair goes too (Synapse injects it on timeline fetches only), except on the requester’s own membership and on events duplicated from the returned timeline (MSC4222, full_state), the copies clients read membership transitions from.