pub fn gen_event_id(
value: &CanonicalJsonObject,
room_version_id: &RoomVersionId,
) -> Result<OwnedEventId>Expand description
Generates a correct eventId for the PDU. For v1/v2 incoming PDU’s the value’s event_id is passed through. For all outgoing PDU’s and for v3+ incoming PDU’s it is generated.