Skip to content

Commit

Permalink
crypto: Provide a way to subscribe to identity status changes
Browse files Browse the repository at this point in the history
  • Loading branch information
andybalaam committed Sep 30, 2024
1 parent 7324f0d commit 13e9d25
Show file tree
Hide file tree
Showing 4 changed files with 715 additions and 1 deletion.
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 @@ -109,7 +109,7 @@ impl UserIdentity {
}

pub(crate) fn underlying_identity(&self) -> CryptoUserIdentities {
self.inner.identity.clone()
self.inner.clone()
}

/// The ID of the user this identity belongs to.
Expand Down
1 change: 1 addition & 0 deletions crates/matrix-sdk/src/encryption/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1005,6 +1005,7 @@ impl Encryption {
let olm = self.client.olm_machine().await;
let Some(olm) = olm.as_ref() else { return Ok(None) };
let identity = olm.get_identity(user_id, None).await?;
dbg!(&identity);

Ok(identity.map(|i| UserIdentity::new(self.client.clone(), i)))
}
Expand Down
Loading

0 comments on commit 13e9d25

Please sign in to comment.