fn with_prev_unsigned(
pdu_json: CanonicalJsonObject,
prev_state: Option<&PduEvent>,
) -> Result<CanonicalJsonObject>Expand description
Fill a state event’s unsigned from the event it replaced.
Adds the replaced event’s prev_content, prev_sender and
replaces_state, from which clients read a membership or other state
change. A non-object unsigned is logged and left as it is.