Updated on 2026-08-14
This commit is contained in:
parent
665d56c9e8
commit
7d461390e0
19 changed files with 387 additions and 623 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue