Call the new recoverAndFixBackup method to fix key storage if it's broken
This commit is contained in:
committed by
Stefan Ceriu
parent
127fcf6854
commit
e6a8ca11fd
@@ -147,7 +147,7 @@ class SecureBackupController: SecureBackupControllerProtocol {
|
||||
func confirmRecoveryKey(_ key: String) async -> Result<Void, SecureBackupControllerError> {
|
||||
do {
|
||||
MXLog.info("Confirming recovery key")
|
||||
try await encryption.recover(recoveryKey: key)
|
||||
try await encryption.recoverAndFixBackup(recoveryKey: key)
|
||||
return .success(())
|
||||
} catch {
|
||||
MXLog.info("Failed confirming recovery key with error: \(error)")
|
||||
|
||||
Reference in New Issue
Block a user