diff --git a/src/identities.rs b/src/identities.rs index a8f74a0..d2db7d7 100644 --- a/src/identities.rs +++ b/src/identities.rs @@ -38,6 +38,12 @@ impl_from_to_inner!(matrix_sdk_crypto::OwnUserIdentity => OwnUserIdentity); #[wasm_bindgen] impl OwnUserIdentity { + /// Is this user identity verified? + #[wasm_bindgen(js_name = "isVerified")] + pub fn is_verified(&self) -> bool { + self.inner.is_verified() + } + /// Mark our user identity as verified. /// /// This will mark the identity locally as verified and sign it with our own