Skip to content

Commit

Permalink
Add is_verified to OwnUserIdentity (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
florianduros authored Jul 26, 2023
1 parent 7346011 commit ee73aa4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/identities.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ee73aa4

Please sign in to comment.