Security settings: Offer to reset the secure backup when there is no key backup

This commit is contained in:
manuroe
2021-06-16 10:55:59 +02:00
parent 40c5841b9b
commit a419d61c7f
3 changed files with 18 additions and 17 deletions

View File

@@ -20,16 +20,16 @@ import UIKit
///
/// - checkingBackup: Load current backup on the homeserver
/// - checkError: Fail to load current backup data
/// - noBackup: There is no backup on the homeserver
/// - backup: There is a valid backup on the homeserver. All keys have been backed up to it
/// - backupAndRunning: There is a valid backup on the homeserver. Keys are being sent to it
/// - backupButNotVerified: There is a backup on the homeserver but it has not been verified yet
/// - noKeyBackup: There is no backup on the homeserver
/// - keyBackup: There is a valid backup on the homeserver. All keys have been backed up to it
/// - keyBackupAndRunning: There is a valid backup on the homeserver. Keys are being sent to it
/// - keyBackupNotTrusted: There is a backup on the homeserver but it is not trusted
enum SettingsSecureBackupViewState {
case checkingBackup
case noBackup
case backup(MXKeyBackupVersion, MXKeyBackupVersionTrust)
case backupAndRunning(MXKeyBackupVersion, MXKeyBackupVersionTrust, Progress)
case backupNotTrusted(MXKeyBackupVersion, MXKeyBackupVersionTrust)
case noKeyBackup
case keyBackup(MXKeyBackupVersion, MXKeyBackupVersionTrust)
case keyBackupAndRunning(MXKeyBackupVersion, MXKeyBackupVersionTrust, Progress)
case keyBackupNotTrusted(MXKeyBackupVersion, MXKeyBackupVersionTrust)
}
/// State representing a network request made by the module