mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-04-22 16:17:31 -04:00
refactor(sdk-crypto): Fix several issues related to the newly enabled experimental-push-secrets feature
This commit is contained in:
committed by
Andy Balaam
parent
a3d6114ddd
commit
db787c28b8
@@ -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)
|
||||
|
||||
@@ -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")]
|
||||
|
||||
Reference in New Issue
Block a user