We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 672cab5 commit 523bf39Copy full SHA for 523bf39
crates/matrix-sdk-crypto/src/identities/device.rs
@@ -450,7 +450,11 @@ impl Device {
450
) -> OlmResult<(Session, Raw<ToDeviceEncryptedEventContent>)> {
451
#[cfg(feature = "message-ids")]
452
let message_id = {
453
+ #[cfg(not(target_arch = "wasm32"))]
454
let id = ulid::Ulid::new().to_string();
455
+ #[cfg(target_arch = "wasm32")]
456
+ let id = ruma::TransactionId::new().to_string();
457
+
458
tracing::Span::current().record("message_id", &id);
459
Some(id)
460
};
0 commit comments