Skip to content

Commit 523bf39

Browse files
committed
fixup! Add a message id to our encrypted to-device events
1 parent 672cab5 commit 523bf39

File tree

1 file changed

+4
-0
lines changed
  • crates/matrix-sdk-crypto/src/identities

1 file changed

+4
-0
lines changed

crates/matrix-sdk-crypto/src/identities/device.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,11 @@ impl Device {
450450
) -> OlmResult<(Session, Raw<ToDeviceEncryptedEventContent>)> {
451451
#[cfg(feature = "message-ids")]
452452
let message_id = {
453+
#[cfg(not(target_arch = "wasm32"))]
453454
let id = ulid::Ulid::new().to_string();
455+
#[cfg(target_arch = "wasm32")]
456+
let id = ruma::TransactionId::new().to_string();
457+
454458
tracing::Span::current().record("message_id", &id);
455459
Some(id)
456460
};

0 commit comments

Comments
 (0)