mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 16:10:20 +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> {
|
func confirmRecoveryKey(_ key: String) async -> Result<Void, SecureBackupControllerError> {
|
||||||
do {
|
do {
|
||||||
MXLog.info("Confirming recovery key")
|
MXLog.info("Confirming recovery key")
|
||||||
try await encryption.recover(recoveryKey: key)
|
try await encryption.recoverAndFixBackup(recoveryKey: key)
|
||||||
return .success(())
|
return .success(())
|
||||||
} catch {
|
} catch {
|
||||||
MXLog.info("Failed confirming recovery key with error: \(error)")
|
MXLog.info("Failed confirming recovery key with error: \(error)")
|
||||||
|
|||||||
Reference in New Issue
Block a user