Skip to content

Commit

Permalink
task(bindings): Expose withdraw_verification in UserIdentity
Browse files Browse the repository at this point in the history
  • Loading branch information
BillCarsonFr authored and poljar committed Jan 10, 2025
1 parent 5941495 commit a79d409
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions bindings/matrix-sdk-ffi/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,4 @@ Additions:
- Add `Encryption::get_user_identity` which returns `UserIdentity`
- Add `ClientBuilder::room_key_recipient_strategy`
- Add `Room::send_raw`
- Expose `withdraw_verification` to `UserIdentity`
9 changes: 9 additions & 0 deletions bindings/matrix-sdk-ffi/src/encryption.rs
Original file line number Diff line number Diff line change
Expand Up @@ -478,6 +478,15 @@ impl UserIdentity {
Ok(self.inner.pin().await?)
}

/// Remove the requirement for this identity to be verified.
///
/// If an identity was previously verified and is not anymore it will be
/// reported to the user. In order to remove this notice users have to
/// verify again or to withdraw the verification requirement.
pub(crate) async fn withdraw_verification(&self) -> Result<(), ClientError> {
Ok(self.inner.withdraw_verification().await?)
}

/// Get the public part of the Master key of this user identity.
///
/// The public part of the Master key is usually used to uniquely identify
Expand Down
2 changes: 1 addition & 1 deletion crates/matrix-sdk/src/encryption/identities/users.rs
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ impl UserIdentity {

/// Remove the requirement for this identity to be verified.
///
/// If an identity was previously verified and is not any more it will be
/// If an identity was previously verified and is not anymore it will be
/// reported to the user. In order to remove this notice users have to
/// verify again or to withdraw the verification requirement.
pub async fn withdraw_verification(&self) -> Result<(), CryptoStoreError> {
Expand Down

0 comments on commit a79d409

Please sign in to comment.