From 36cca4e4449ec24fab7d1b07d6c2d135db4e6bdb Mon Sep 17 00:00:00 2001 From: Hubert Chathi Date: Fri, 10 Apr 2026 08:58:15 -0400 Subject: [PATCH] add comment --- crates/matrix-sdk/src/encryption/backups/mod.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/crates/matrix-sdk/src/encryption/backups/mod.rs b/crates/matrix-sdk/src/encryption/backups/mod.rs index bfee8e32e..f598e51b6 100644 --- a/crates/matrix-sdk/src/encryption/backups/mod.rs +++ b/crates/matrix-sdk/src/encryption/backups/mod.rs @@ -158,6 +158,11 @@ impl Backups { #[cfg(feature = "experimental-push-secrets")] { + // Push the backup key to our own verified devices. + // `push_secret_to_verified_devices` depends on having existing + // Olm sessions with the devices that the secret is being pushed + // to, so make sure we have Olm sessions with all our other + // devices. if let Some((txn_id, keys_claim_request)) = olm_machine .get_missing_sessions(vec![olm_machine.user_id()].into_iter()) .await?