Updated on 2026-08-14
This commit is contained in:
parent
861f650cd4
commit
59680b5305
7 changed files with 225 additions and 34 deletions
|
|
@ -161,7 +161,7 @@ internal class OrganizeTokensViewModel @Inject constructor(
|
|||
|
||||
private fun bootstrapTokenList() {
|
||||
viewModelScope.launch(dispatchers.default) {
|
||||
val maybeTokenList = getTokenListUseCase(userWalletId)
|
||||
val maybeTokenList = getTokenListUseCase.launch(userWalletId)
|
||||
.first { it.getOrNull()?.totalFiatBalance !is TokenList.FiatBalance.Loading }
|
||||
|
||||
maybeTokenList.fold(
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ internal class GetMultiWalletWarningsFactory @Inject constructor(
|
|||
|
||||
val promoFlow = flow { emit(promoRepository.getChangellyPromoBanner()) }
|
||||
return combine(
|
||||
flow = getTokenListUseCase(userWallet.walletId).conflate(),
|
||||
flow = getTokenListUseCase.launch(userWallet.walletId).conflate(),
|
||||
flow2 = isReadyToShowRateAppUseCase().conflate(),
|
||||
flow3 = isNeedToBackupUseCase(userWallet.walletId).conflate(),
|
||||
flow4 = shouldShowSwapPromoWalletUseCase().conflate(),
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ internal class MultiWalletTokenListSubscriber(
|
|||
getSelectedAppCurrencyUseCase = getSelectedAppCurrencyUseCase,
|
||||
) {
|
||||
|
||||
override fun tokenListFlow(): MaybeTokenListFlow = getTokenListUseCase(userWallet.walletId)
|
||||
override fun tokenListFlow(): MaybeTokenListFlow = getTokenListUseCase.launch(userWallet.walletId)
|
||||
|
||||
override suspend fun onTokenListReceived(maybeTokenList: Either<TokenListError, TokenList>) {
|
||||
// TODO disabled for 5.7.2 because of potential critical
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue