From 612b56f067976b99377fec3b3c4ab34662c4dd93 Mon Sep 17 00:00:00 2001 From: Andy Balaam Date: Thu, 5 Mar 2026 17:27:16 +0000 Subject: [PATCH] Call the new recoverAndFixBackup method to fix key storage if it's broken --- .../libraries/matrix/impl/encryption/RustEncryptionService.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/matrix/impl/src/main/kotlin/io/element/android/libraries/matrix/impl/encryption/RustEncryptionService.kt b/libraries/matrix/impl/src/main/kotlin/io/element/android/libraries/matrix/impl/encryption/RustEncryptionService.kt index e081d1c9f1..f67b7cb7e1 100644 --- a/libraries/matrix/impl/src/main/kotlin/io/element/android/libraries/matrix/impl/encryption/RustEncryptionService.kt +++ b/libraries/matrix/impl/src/main/kotlin/io/element/android/libraries/matrix/impl/encryption/RustEncryptionService.kt @@ -214,7 +214,7 @@ class RustEncryptionService( override suspend fun recover(recoveryKey: String): Result = withContext(dispatchers.io) { runCatchingExceptions { - service.recover(recoveryKey) + service.recoverAndFixBackup(recoveryKey) }.recoverCatching { when (it) { // We ignore import errors because the user will be notified about them via the "Key storage out of sync" detection.