We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 66c79ac commit d039dadCopy full SHA for d039dad
1 file changed
bindings/matrix-sdk-ffi/src/encryption.rs
@@ -320,6 +320,15 @@ impl SecretsBundleWithUserId {
320
321
ret
322
}
323
+
324
+ /// Does the bundle contain a backup key.
325
+ ///
326
+ /// Since enabling a backup is optional, the backup key might be missing
327
+ /// from the bundle. Returns `false` if the backup key is missing,
328
+ /// otherwise `true`.
329
+ pub fn contains_backup_key(&self) -> bool {
330
+ self.inner.backup.is_some()
331
+ }
332
333
334
/// Check if a crypto store contains a valid [`SecretsBundle`].
0 commit comments