Skip to content

Commit 7be76a6

Browse files
committed
Call the new recoverAndFixBackup method to fix key storage if it's broken
1 parent 73961b4 commit 7be76a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/matrix/impl/src/main/kotlin/io/element/android/libraries/matrix/impl/encryption/RustEncryptionService.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ class RustEncryptionService(
214214

215215
override suspend fun recover(recoveryKey: String): Result<Unit> = withContext(dispatchers.io) {
216216
runCatchingExceptions {
217-
service.recover(recoveryKey)
217+
service.recoverAndFixBackup(recoveryKey)
218218
}.recoverCatching {
219219
when (it) {
220220
// We ignore import errors because the user will be notified about them via the "Key storage out of sync" detection.

0 commit comments

Comments
 (0)