mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-05-18 21:52:30 -04:00
A little bit of cleanup
This commit is contained in:
committed by
Jonas Platte
parent
a8fb54ee67
commit
c3d7a0704a
@@ -427,7 +427,7 @@ impl BaseClient {
|
||||
}
|
||||
}
|
||||
Err(e) => {
|
||||
warn!("Error deserializing event {:?}", e);
|
||||
warn!("Error deserializing event {e:?}");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -733,16 +733,14 @@ impl GossipMachine {
|
||||
room_id: &RoomId,
|
||||
event: &EncryptedEvent,
|
||||
) -> Result<bool, CryptoStoreError> {
|
||||
Ok(if let Some(info) = event.room_key_info(room_id).map(|i| i.into()) {
|
||||
if let Some(info) = event.room_key_info(room_id).map(|i| i.into()) {
|
||||
if self.should_request_key(&info).await? {
|
||||
self.request_key_helper(info).await?;
|
||||
true
|
||||
} else {
|
||||
false
|
||||
return Ok(true);
|
||||
}
|
||||
} else {
|
||||
false
|
||||
})
|
||||
}
|
||||
|
||||
Ok(false)
|
||||
}
|
||||
|
||||
/// Save an outgoing key info.
|
||||
|
||||
@@ -413,7 +413,7 @@ impl Store {
|
||||
self.inner.identity.lock().await.reset().await;
|
||||
}
|
||||
|
||||
/// PrivateCrossSigningIdentity associated with this store
|
||||
/// PrivateCrossSigningIdentity associated with this store
|
||||
pub(crate) fn private_identity(&self) -> Arc<Mutex<PrivateCrossSigningIdentity>> {
|
||||
self.inner.identity.clone()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user