Skip to content

Commit 60d83c8

Browse files
committed
fix: set backupVerified true also on RN restore
1 parent ec9d737 commit 60d83c8

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

app/src/main/java/to/bitkit/services/MigrationService.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ import kotlinx.coroutines.flow.first
2323
import kotlinx.coroutines.flow.update
2424
import kotlinx.serialization.SerialName
2525
import kotlinx.serialization.Serializable
26-
import kotlinx.serialization.encodeToString
2726
import kotlinx.serialization.json.JsonObject
2827
import kotlinx.serialization.json.JsonPrimitive
2928
import kotlinx.serialization.json.buildJsonObject
@@ -1212,6 +1211,8 @@ class MigrationService @Inject constructor(
12121211
val bitkitFiles = rnBackupClient.listFiles(fileGroup = "bitkit")?.list ?: emptyList()
12131212
retrieveAndApplyBitkitBackups(bitkitFiles)
12141213
markMigrationCompleted()
1214+
}.onSuccess {
1215+
settingsStore.update { it.copy(backupVerified = true) }
12151216
}.onFailure { e ->
12161217
Logger.error("RN remote backup restore failed", e, context = TAG)
12171218
throw e
@@ -1419,6 +1420,7 @@ class MigrationService @Inject constructor(
14191420
Logger.warn("Paid order $orderId not found in fetched orders", context = TAG)
14201421
null
14211422
}
1423+
14221424
order.state2 == com.synonym.bitkitcore.BtOrderState2.EXECUTED -> null
14231425
else -> TransferEntity(
14241426
id = txId,

0 commit comments

Comments
 (0)