Skip to main content

from_incoming_federation

Function from_incoming_federation 

Source
pub fn from_incoming_federation(
    room_id: &RoomId,
    event_id: &EventId,
    pdu_json: CanonicalJsonObject,
    room_rules: &RoomVersionRules,
) -> CanonicalJsonObject
Expand description

Normalizes a federation PDU object into the stored representation.

Legacy event-reference tuples are collapsed and omitted room or event IDs are restored from trusted request context. The supplied rules must match the event’s room version.