Secrets recovery: Update recovery with passphrase and recovery with key screens.

This commit is contained in:
SBiOSoftWhare
2020-06-11 13:21:47 +02:00
parent 043ddebdf3
commit 49211bdce2
17 changed files with 173 additions and 87 deletions
@@ -26,6 +26,8 @@ final class SecretsRecoveryWithKeyViewModel: SecretsRecoveryWithKeyViewModelType
// MARK: Public
let recoveryGoal: SecretsRecoveryGoal
var recoveryKey: String?
var isFormValid: Bool {
@@ -37,8 +39,9 @@ final class SecretsRecoveryWithKeyViewModel: SecretsRecoveryWithKeyViewModelType
// MARK: - Setup
init(recoveryService: MXRecoveryService) {
init(recoveryService: MXRecoveryService, recoveryGoal: SecretsRecoveryGoal) {
self.recoveryService = recoveryService
self.recoveryGoal = recoveryGoal
}
// MARK: - Public