Updated on 2026-08-14
This commit is contained in:
parent
dfe6dd80b7
commit
f9369de36a
1 changed files with 5 additions and 5 deletions
|
|
@ -363,6 +363,8 @@ internal class WalletModel @Inject constructor(
|
|||
}.distinctUntilChanged(),
|
||||
transform = ::Pair,
|
||||
).onEach { (inBackground, userWalletId) ->
|
||||
if (inBackground) return@onEach
|
||||
|
||||
val savedCustomerInfo =
|
||||
tangemPayOnboardingRepository.getSavedCustomerInfo(userWalletId)
|
||||
|
||||
|
|
@ -372,12 +374,10 @@ internal class WalletModel @Inject constructor(
|
|||
if (isShouldLaunchPeriodicUpdate) {
|
||||
updateTangemPayJobHolder.cancel()
|
||||
modelScope.launch {
|
||||
if (!inBackground) {
|
||||
tangemPayMainInfoManager.refreshTangemPayInfo(userWalletId)
|
||||
while (isActive) {
|
||||
delay(TANGEM_PAY_UPDATE_INTERVAL)
|
||||
tangemPayMainInfoManager.refreshTangemPayInfo(userWalletId)
|
||||
while (isActive) {
|
||||
delay(TANGEM_PAY_UPDATE_INTERVAL)
|
||||
tangemPayMainInfoManager.refreshTangemPayInfo(userWalletId)
|
||||
}
|
||||
}
|
||||
}.saveIn(updateTangemPayJobHolder)
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue