Security settings: Manage the case where the is a key backup but no secure backup

This commit is contained in:
manuroe
2021-06-16 12:25:01 +02:00
parent 6719aee247
commit 90355a14f2
3 changed files with 25 additions and 8 deletions
@@ -141,6 +141,14 @@ private enum BackupRows {
.description(text: VectorL10n.securitySettingsSecureBackupDescription)
]
case .noSecureBackupButKeyBackup(let keyBackupVersion, let keyBackupVersionTrust):
backupRows = [
.info(text: VectorL10n.securitySettingsSecureBackupInfoValid),
.restoreFromKeyBackupAction(keyBackupVersion: keyBackupVersion, title: VectorL10n.securitySettingsSecureBackupRestore),
.deleteKeyBackupAction(keyBackupVersion: keyBackupVersion),
.description(text: VectorL10n.securitySettingsSecureBackupDescription)
]
case .noKeyBackup:
let noBackup = VectorL10n.settingsKeyBackupInfoNone
let signoutWarning = VectorL10n.settingsKeyBackupInfoSignoutWarning