refactor(sdk-crypto): Fix several issues related to the newly enabled experimental-push-secrets feature

This commit is contained in:
Jorge Martín
2026-04-21 10:24:55 +02:00
committed by Andy Balaam
parent a3d6114ddd
commit db787c28b8
2 changed files with 5 additions and 2 deletions

View File

@@ -1211,6 +1211,8 @@ impl GossipMachine {
#[cfg(test)]
mod tests {
#[cfg(feature = "experimental-push-secrets")]
use std::ops::Deref;
use std::sync::Arc;
#[cfg(feature = "automatic-room-key-forwarding")]
@@ -2367,7 +2369,7 @@ mod tests {
.unwrap()
.unwrap();
let decryption_key = crate::store::types::BackupDecryptionKey::new().unwrap();
let decryption_key = crate::store::types::BackupDecryptionKey::new();
alice_machine
.backup_machine()
.save_decryption_key(Some(decryption_key.clone()), None)

View File

@@ -2024,7 +2024,8 @@ impl OlmMachine {
/// Push a secret to all of our other verified devices.
///
/// This function assumes that we already have Olm sessions with the other
/// devices. This can be done by calling [`get_missing_sessions()`].
/// devices. This can be done by calling
/// [`OlmMachine::get_missing_sessions()`].
///
/// * `secret_name` - The name of the secret to push
#[cfg(feature = "experimental-push-secrets")]