We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad2cb9e commit 6bbaa11Copy full SHA for 6bbaa11
app/src/main/java/to/bitkit/repositories/WalletRepo.kt
@@ -52,6 +52,7 @@ class WalletRepo @Inject constructor(
52
private val cacheStore: CacheStore,
53
private val deriveBalanceStateUseCase: DeriveBalanceStateUseCase,
54
private val vssStoreIdProvider: VssStoreIdProvider,
55
+ private val backupRepo: BackupRepo,
56
) {
57
private val repoScope = CoroutineScope(bgDispatcher + SupervisorJob())
58
@@ -242,6 +243,8 @@ class WalletRepo @Inject constructor(
242
243
}
244
245
suspend fun wipeWallet(walletIndex: Int = 0): Result<Unit> = withContext(bgDispatcher) {
246
+ backupRepo.stopObservingBackups()
247
+
248
try {
249
keychain.wipe()
250
vssStoreIdProvider.clearCache(walletIndex)
0 commit comments