File tree 3 files changed +385
-13
lines changed
3 files changed +385
-13
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,9 @@ Breaking changes:
25
25
26
26
Additions:
27
27
28
+ - Expose new method ` BackupMachine::backup_version ` .
29
+ ([ #3320 ] ( https://github.com/matrix-org/matrix-rust-sdk/pull/3320 ) )
30
+
28
31
- Expose new method ` OlmMachine::device_creation_time ` .
29
32
([ #3275 ] ( https://github.com/matrix-org/matrix-rust-sdk/pull/3275 ) )
30
33
Original file line number Diff line number Diff line change @@ -419,6 +419,12 @@ impl BackupMachine {
419
419
Ok ( ( ) )
420
420
}
421
421
422
+ /// Provide the `backup_version` of the current `backup_key`, or None if there is no current
423
+ /// key, or the key is not used with any backup version.
424
+ pub async fn backup_version ( & self ) -> Option < String > {
425
+ self . backup_key . read ( ) . await . as_ref ( ) . and_then ( |k| k. backup_version ( ) )
426
+ }
427
+
422
428
/// Store the backup decryption key in the crypto store.
423
429
///
424
430
/// This is useful if the client wants to support gossiping of the backup
You can’t perform that action at this time.
0 commit comments