Skip to content

Commit

Permalink
fixup! crypto: Expose a method to pin a user's identity
Browse files Browse the repository at this point in the history
Use String not str in FFI layer
  • Loading branch information
andybalaam committed Oct 3, 2024
1 parent e58038d commit 1e309a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bindings/matrix-sdk-ffi/src/room.rs
Original file line number Diff line number Diff line change
Expand Up @@ -609,8 +609,8 @@ impl Room {
})))
}

pub async fn pin_user_identity(&self, user_id: &str) -> Result<(), ClientError> {
Ok(self.inner.pin_user_identity(user_id.try_into()?).await?)
pub async fn pin_user_identity(&self, user_id: String) -> Result<(), ClientError> {
Ok(self.inner.pin_user_identity(user_id.as_str().try_into()?).await?)
}

/// Set (or unset) a flag on the room to indicate that the user has
Expand Down

0 comments on commit 1e309a2

Please sign in to comment.