Updated on 2026-08-14

This commit is contained in:
Tangem 2025-05-14 15:06:35 +03:00
parent 8009743fb9
commit a72837204d
35 changed files with 628 additions and 132 deletions

View file

@ -67,6 +67,7 @@ internal class WalletModel @Inject constructor(
private val getWalletsUseCase: GetWalletsUseCase,
private val shouldShowSaveWalletScreenUseCase: ShouldShowSaveWalletScreenUseCase,
private val shouldShowMarketsTooltipUseCase: ShouldShowMarketsTooltipUseCase,
private val setWalletFirstTimeUsageUseCase: SetWalletFirstTimeUsageUseCase,
private val canUseBiometryUseCase: CanUseBiometryUseCase,
private val isWalletsScrollPreviewEnabled: IsWalletsScrollPreviewEnabled,
private val getBalanceHidingSettingsUseCase: GetBalanceHidingSettingsUseCase,
@ -103,6 +104,7 @@ internal class WalletModel @Inject constructor(
suggestToOpenMarkets()
maybeMigrateNames()
maybeSetWalletFirstTimeUsage()
subscribeToUserWalletsUpdates()
subscribeOnBalanceHiding()
subscribeOnSelectedWalletFlow()
@ -117,6 +119,12 @@ internal class WalletModel @Inject constructor(
}
}
private fun maybeSetWalletFirstTimeUsage() {
modelScope.launch {
setWalletFirstTimeUsageUseCase()
}
}
override fun onDestroy() {
super.onDestroy()