From e6a8ca11fd69989a46ec635737e8c5afcb48e413 Mon Sep 17 00:00:00 2001 From: Andy Balaam Date: Thu, 5 Mar 2026 17:27:40 +0000 Subject: [PATCH] Call the new recoverAndFixBackup method to fix key storage if it's broken --- .../Sources/Services/SecureBackup/SecureBackupController.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ElementX/Sources/Services/SecureBackup/SecureBackupController.swift b/ElementX/Sources/Services/SecureBackup/SecureBackupController.swift index 7b5cb1757..a51e0345c 100644 --- a/ElementX/Sources/Services/SecureBackup/SecureBackupController.swift +++ b/ElementX/Sources/Services/SecureBackup/SecureBackupController.swift @@ -147,7 +147,7 @@ class SecureBackupController: SecureBackupControllerProtocol { func confirmRecoveryKey(_ key: String) async -> Result { 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)")