Skip to main content

into_outgoing_federation

Function into_outgoing_federation 

Source
pub fn into_outgoing_federation(
    pdu_json: CanonicalJsonObject,
    room_version: &RoomVersionId,
) -> CanonicalJsonObject
Expand 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.