Skip to content

Commit a79d409

Browse files
BillCarsonFrpoljar
authored andcommitted
task(bindings): Expose withdraw_verification in UserIdentity
1 parent 5941495 commit a79d409

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

bindings/matrix-sdk-ffi/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,4 @@ Additions:
3434
- Add `Encryption::get_user_identity` which returns `UserIdentity`
3535
- Add `ClientBuilder::room_key_recipient_strategy`
3636
- Add `Room::send_raw`
37+
- Expose `withdraw_verification` to `UserIdentity`

bindings/matrix-sdk-ffi/src/encryption.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -478,6 +478,15 @@ impl UserIdentity {
478478
Ok(self.inner.pin().await?)
479479
}
480480

481+
/// Remove the requirement for this identity to be verified.
482+
///
483+
/// If an identity was previously verified and is not anymore it will be
484+
/// reported to the user. In order to remove this notice users have to
485+
/// verify again or to withdraw the verification requirement.
486+
pub(crate) async fn withdraw_verification(&self) -> Result<(), ClientError> {
487+
Ok(self.inner.withdraw_verification().await?)
488+
}
489+
481490
/// Get the public part of the Master key of this user identity.
482491
///
483492
/// The public part of the Master key is usually used to uniquely identify

crates/matrix-sdk/src/encryption/identities/users.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ impl UserIdentity {
415415

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

0 commit comments

Comments
 (0)