fn strip_state_unsigned(
pdu: PduEvent,
sender_user: &UserId,
in_timeline: impl Fn(&PduEvent) -> bool,
) -> PduEventExpand 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.