Call the new recoverAndFixBackup method to fix key storage if it's broken

This commit is contained in:
Andy Balaam
2026-03-05 17:27:40 +00:00
committed by Stefan Ceriu
parent 127fcf6854
commit e6a8ca11fd

View File

@@ -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)")