Display only available secure backup methods on setup

This commit is contained in:
Arnaud Ringenbach
2022-03-09 11:36:49 +01:00
parent b0d7c2e0b8
commit c4489ee711
4 changed files with 25 additions and 3 deletions
@@ -23,11 +23,13 @@ final class SecureBackupSetupIntroViewModel: SecureBackupSetupIntroViewModelType
// TODO: Make these properties private
let keyBackup: MXKeyBackup?
let checkKeyBackup: Bool
let homeserverEncryptionConfiguration: HomeserverEncryptionConfiguration
// MARK: - Setup
init(keyBackup: MXKeyBackup?, checkKeyBackup: Bool) {
init(keyBackup: MXKeyBackup?, checkKeyBackup: Bool, homeserverEncryptionConfiguration: HomeserverEncryptionConfiguration) {
self.keyBackup = keyBackup
self.checkKeyBackup = checkKeyBackup
}
self.homeserverEncryptionConfiguration = homeserverEncryptionConfiguration
}
}