Skip to content

Commit

Permalink
chore(ffi): Expose is_verified UserIdentity method.
Browse files Browse the repository at this point in the history
  • Loading branch information
pixlwave committed Oct 16, 2024
1 parent 87f89ec commit 808b357
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions bindings/matrix-sdk-ffi/src/encryption.rs
Original file line number Diff line number Diff line change
Expand Up @@ -461,6 +461,14 @@ impl UserIdentity {
pub(crate) fn master_key(&self) -> Option<String> {
self.inner.master_key().get_first_key().map(|k| k.to_base64())
}

/// Is the user identity considered to be verified.
///
/// If the identity belongs to another user, our own user identity needs to
/// be verified as well for the identity to be considered to be verified.
pub fn is_verified(&self) -> bool {
self.inner.is_verified()
}
}

#[derive(uniffi::Object)]
Expand Down

0 comments on commit 808b357

Please sign in to comment.