Updated on 2026-08-14

This commit is contained in:
Tangem 2026-02-17 11:25:50 +04:00
parent bd14f694c5
commit 7559207f59
2 changed files with 10 additions and 4 deletions

View file

@ -171,6 +171,10 @@ sealed class WalletSettingsAnalyticEvents(
event = "Wallet Upgraded",
), AppsFlyerIncludedEvent
class WalletsReorder : WalletSettingsAnalyticEvents(
event = "Longtap - Wallets Order",
)
enum class RecoveryPhraseScreenAction(val value: String) {
Upgrade("Upgrade"),
Backup("Backup"),

View file

@ -13,6 +13,7 @@ import com.tangem.core.decompose.ui.UiMessageSender
import com.tangem.core.ui.extensions.TextReference
import com.tangem.core.ui.extensions.resourceReference
import com.tangem.domain.models.wallet.UserWalletId
import com.tangem.domain.wallets.analytics.WalletSettingsAnalyticEvents
import com.tangem.domain.wallets.usecase.ApplyUserWalletListSortingUseCase
import com.tangem.domain.wallets.usecase.UnlockWalletUseCase
import com.tangem.features.details.entity.UserWalletListUM
@ -138,10 +139,11 @@ internal class UserWalletListModel @Inject constructor(
val userWalletIds = state.value.userWallets.map { UserWalletId(it.id) }
modelScope.launch {
applyUserWalletListSortingUseCase(userWalletIds)
.onLeft { error ->
Timber.e("Failed to apply wallet list sorting: $error")
}
applyUserWalletListSortingUseCase(userWalletIds).onRight {
analyticsEventHandler.send(WalletSettingsAnalyticEvents.WalletsReorder())
}.onLeft { error ->
Timber.e("Failed to apply wallet list sorting: $error")
}
}
}
}