Updated on 2026-08-14

This commit is contained in:
Tangem 2026-03-03 10:39:48 +04:00
parent 665d56c9e8
commit 7d461390e0
19 changed files with 387 additions and 623 deletions

View file

@ -11,7 +11,7 @@ import dagger.assisted.AssistedInject
internal class MultiWalletContentLoader @AssistedInject constructor(
@Assisted private val userWallet: UserWallet,
private val accountListSubscriberFactory: AccountListSubscriber.Factory,
private val walletNFTListSubscriberFactory: WalletNFTListSubscriberV2.Factory,
private val walletNFTListSubscriberFactory: WalletNFTListSubscriber.Factory,
private val checkWalletWithFundsSubscriberFactory: CheckWalletWithFundsSubscriber.Factory,
private val multiWalletWarningsSubscriberFactory: MultiWalletWarningsSubscriber.Factory,
private val walletNotificationsSubscriberFactory: WalletNotificationsSubscriber.Factory,

View file

@ -15,7 +15,7 @@ import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.flow.*
internal class WalletNFTListSubscriberV2 @AssistedInject constructor(
internal class WalletNFTListSubscriber @AssistedInject constructor(
@Assisted override val userWallet: UserWallet,
override val singleAccountStatusListSupplier: SingleAccountStatusListSupplier,
private val walletsRepository: WalletsRepository,
@ -35,7 +35,7 @@ internal class WalletNFTListSubscriberV2 @AssistedInject constructor(
// if NFT is enabled for this wallet and there are currencies,
// then start observing changes from store and apply transformer if need
if (nftEnabled && currencies.isNotEmpty()) {
getNFTCollectionsUseCase.invokeForAccounts(userWallet.walletId)
getNFTCollectionsUseCase(userWallet.walletId)
.shareIn(
scope = coroutineScope,
started = SharingStarted.WhileSubscribed(),
@ -61,6 +61,6 @@ internal class WalletNFTListSubscriberV2 @AssistedInject constructor(
@AssistedFactory
interface Factory {
fun create(userWallet: UserWallet): WalletNFTListSubscriberV2
fun create(userWallet: UserWallet): WalletNFTListSubscriber
}
}