mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:33:26 +00:00
Call the new recoverAndFixBackup method to fix key storage if it's broken
This commit is contained in:
committed by
Stefan Ceriu
parent
785903e8d3
commit
96ea54e299
@@ -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