Skip to content

Commit 0416539

Browse files
committed
Fix build on experimental-algorithms feature
1 parent b6de979 commit 0416539

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

crates/matrix-sdk-crypto/src/olm/account.rs

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1201,7 +1201,14 @@ impl Account {
12011201
content: &OlmV2Curve25519AesSha2Content,
12021202
decryption_settings: &DecryptionSettings,
12031203
) -> OlmResult<OlmDecryptionInfo> {
1204-
self.decrypt_olm_helper(store, sender, content.sender_key, &content.ciphertext).await
1204+
self.decrypt_olm_helper(
1205+
store,
1206+
sender,
1207+
content.sender_key,
1208+
&content.ciphertext,
1209+
decryption_settings,
1210+
)
1211+
.await
12051212
}
12061213

12071214
#[instrument(skip_all, fields(sender, sender_key = ?content.sender_key))]
@@ -1243,7 +1250,7 @@ impl Account {
12431250
}
12441251
#[cfg(feature = "experimental-algorithms")]
12451252
ToDeviceEncryptedEventContent::OlmV2Curve25519AesSha2(c) => {
1246-
self.decrypt_olm_v2(store, &event.sender, c).await
1253+
self.decrypt_olm_v2(store, &event.sender, c, decryption_settings).await
12471254
}
12481255
ToDeviceEncryptedEventContent::Unknown(_) => {
12491256
warn!(

0 commit comments

Comments
 (0)