Updated on 2026-08-14

This commit is contained in:
Tangem 2025-10-31 10:00:15 +04:00
parent e7ebbb931e
commit 507b608807
12 changed files with 152 additions and 37 deletions

View file

@ -233,6 +233,7 @@ internal class MultiWalletFinalizeModel @Inject constructor(
}
}
@Suppress("LongMethod")
private fun finishBackup() {
modelScope.launch {
setLoading(true)
@ -306,6 +307,10 @@ internal class MultiWalletFinalizeModel @Inject constructor(
launch(NonCancellable) { walletsRepository.markWallet2WasCreated(userWallet.walletId) }
}
if (userWallet.isMultiCurrency) {
launch(NonCancellable) { walletsRepository.createWallet(userWallet.walletId) }
}
// user wallet is fully created and saved, remove scan response from preferences
// to prevent showing finalize screen dialog on next app start
onboardingRepository.clearUnfinishedFinalizeOnboarding()