Updated on 2026-08-14

This commit is contained in:
Tangem 2026-06-23 08:40:33 +03:00
parent 0f8519007b
commit 428f1076f0
11 changed files with 248 additions and 185 deletions

View file

@ -163,7 +163,6 @@ internal class PushNotificationSettingsModel @Inject constructor(
return TOGGLE_ORDER
.asSequence()
.map { id -> id.spec(prefs) }
.filter { it.preference.isVisible }
.map { spec ->
ToggleUM(
id = spec.id,

View file

@ -286,14 +286,14 @@ class PushNotificationSettingsModelTest {
}
private fun allFalse() = WalletPushNotificationPreferences(
transactionAlerts = PushNotificationPreference(isEnabled = false, isVisible = true),
offersUpdates = PushNotificationPreference(isEnabled = false, isVisible = true),
priceAlerts = PushNotificationPreference(isEnabled = false, isVisible = true),
transactionAlerts = PushNotificationPreference(isEnabled = false),
offersUpdates = PushNotificationPreference(isEnabled = false),
priceAlerts = PushNotificationPreference(isEnabled = false),
)
private fun anyOn() = WalletPushNotificationPreferences(
transactionAlerts = PushNotificationPreference(isEnabled = true, isVisible = true),
offersUpdates = PushNotificationPreference(isEnabled = false, isVisible = true),
priceAlerts = PushNotificationPreference(isEnabled = false, isVisible = true),
transactionAlerts = PushNotificationPreference(isEnabled = true),
offersUpdates = PushNotificationPreference(isEnabled = false),
priceAlerts = PushNotificationPreference(isEnabled = false),
)
}