From 95ced18edde2b68b6f34f55b30ba7abcbb4973c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Tue, 26 Sep 2023 12:55:03 +0200 Subject: [PATCH] Implement Default for the CrossSigningKeyExport Co-authored-by: Jonas Platte --- crates/matrix-sdk-crypto/src/store/mod.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/matrix-sdk-crypto/src/store/mod.rs b/crates/matrix-sdk-crypto/src/store/mod.rs index 8ebcd6004..60a24b869 100644 --- a/crates/matrix-sdk-crypto/src/store/mod.rs +++ b/crates/matrix-sdk-crypto/src/store/mod.rs @@ -671,7 +671,7 @@ pub struct BackupKeys { /// A struct containing private cross signing keys that can be backed up or /// uploaded to the secret store. -#[derive(Zeroize)] +#[derive(Default, Zeroize)] #[zeroize(drop)] pub struct CrossSigningKeyExport { /// The seed of the master key encoded as unpadded base64. @@ -1116,6 +1116,8 @@ impl Store { info!(?status, "Successfully imported the private cross-signing keys"); self.save_changes(changes).await?; + } else { + warn!("No public identity found while importing cross-signing keys, a /keys/query needs to be done"); } Ok(self.inner.identity.lock().await.status().await)