Skip to main content

Module id

Module id 

Source

Re-exportsΒ§

use ruma::CanonicalJsonObject; πŸ”’
use ruma::CanonicalJsonValue; πŸ”’
use ruma::OwnedEventId; πŸ”’
use ruma::RoomVersionId; πŸ”’
use serde_json::value::RawValue as RawJsonValue; πŸ”’
use tuwunel_core::Result; πŸ”’
use tuwunel_core::debug_error; πŸ”’
use tuwunel_core::err; πŸ”’
use crate::room_version; πŸ”’

FunctionsΒ§

gen_event_id
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.
gen_event_id_canonical_json
Generates a correct eventId for the incoming pdu.