mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 06:55:41 +00:00
Call the new recoverAndFixBackup method to fix key storage if it's broken
This commit is contained in:
+1
-1
@@ -214,7 +214,7 @@ class RustEncryptionService(
|
|||||||
|
|
||||||
override suspend fun recover(recoveryKey: String): Result<Unit> = withContext(dispatchers.io) {
|
override suspend fun recover(recoveryKey: String): Result<Unit> = withContext(dispatchers.io) {
|
||||||
runCatchingExceptions {
|
runCatchingExceptions {
|
||||||
service.recover(recoveryKey)
|
service.recoverAndFixBackup(recoveryKey)
|
||||||
}.recoverCatching {
|
}.recoverCatching {
|
||||||
when (it) {
|
when (it) {
|
||||||
// We ignore import errors because the user will be notified about them via the "Key storage out of sync" detection.
|
// We ignore import errors because the user will be notified about them via the "Key storage out of sync" detection.
|
||||||
|
|||||||
Reference in New Issue
Block a user