pub fn into_outgoing_federation(
pdu_json: CanonicalJsonObject,
room_version: &RoomVersionId,
) -> CanonicalJsonObjectExpand description
Converts a stored PDU object to its federation wire representation.
Local transaction metadata is removed and room-version rules select the fields and event-reference shape sent to peers. When rules are unavailable, the event ID is removed without rewriting event references.