pub fn gen_event_id_canonical_json(
pdu: &RawValue,
room_version_id: &RoomVersionId,
) -> Result<(OwnedEventId, CanonicalJsonObject)>Expand description
Generates a correct eventId for the incoming pdu.
Returns a tuple of the new EventId and the PDU as a BTreeMap<String, CanonicalJsonValue>.