diff --git a/crates/matrix-sdk-crypto/src/gossiping/machine.rs b/crates/matrix-sdk-crypto/src/gossiping/machine.rs index 762e33ae6..38a2e1dd2 100644 --- a/crates/matrix-sdk-crypto/src/gossiping/machine.rs +++ b/crates/matrix-sdk-crypto/src/gossiping/machine.rs @@ -975,7 +975,7 @@ impl GossipMachine { algorithm: EventEncryptionAlgorithm, ) -> Result, CryptoStoreError> { if let Some(info) = self.get_key_info(content).await? { - self.accept_forwarded_room_key(&info, &sender, sender_key, algorithm, content).await + self.accept_forwarded_room_key(&info, sender, sender_key, algorithm, content).await } else { warn!( sender = %sender, diff --git a/crates/matrix-sdk-crypto/src/olm/group_sessions/inbound.rs b/crates/matrix-sdk-crypto/src/olm/group_sessions/inbound.rs index febe70d41..f3c54a5d2 100644 --- a/crates/matrix-sdk-crypto/src/olm/group_sessions/inbound.rs +++ b/crates/matrix-sdk-crypto/src/olm/group_sessions/inbound.rs @@ -173,7 +173,7 @@ impl InboundGroupSession { algorithm: &EventEncryptionAlgorithm, content: &ForwardedMegolmV1AesSha2Content, ) -> Result { - let config = OutboundGroupSession::session_config(&algorithm)?; + let config = OutboundGroupSession::session_config(algorithm)?; let session = InnerSession::import(&content.session_key, config);