From 1cc90c8ec00cf88756850467b629c74246db9026 Mon Sep 17 00:00:00 2001 From: valere Date: Wed, 21 Jun 2023 09:11:09 +0200 Subject: [PATCH] Fix js binding bad comment --- bindings/matrix-sdk-crypto-js/src/device.rs | 3 ++- crates/matrix-sdk-crypto/src/identities/device.rs | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bindings/matrix-sdk-crypto-js/src/device.rs b/bindings/matrix-sdk-crypto-js/src/device.rs index 35d07b7ec..0fe24e210 100644 --- a/bindings/matrix-sdk-crypto-js/src/device.rs +++ b/bindings/matrix-sdk-crypto-js/src/device.rs @@ -190,7 +190,8 @@ impl Device { self.inner.is_deleted() } - /// Is the device deleted? + /// Timestamp representing the first time this device has been seen (in + /// milliseconds). #[wasm_bindgen(js_name = "firstTimeSeen")] pub fn first_time_seen(&self) -> u64 { self.inner.first_time_seen_ts().0.into() diff --git a/crates/matrix-sdk-crypto/src/identities/device.rs b/crates/matrix-sdk-crypto/src/identities/device.rs index 8e407c04b..d8e43dcbf 100644 --- a/crates/matrix-sdk-crypto/src/identities/device.rs +++ b/crates/matrix-sdk-crypto/src/identities/device.rs @@ -988,7 +988,6 @@ pub(crate) mod testing { #[cfg(test)] pub(crate) mod tests { - use ruma::{user_id, MilliSecondsSinceUnixEpoch}; use vodozemac::{Curve25519PublicKey, Ed25519PublicKey};