Updated on 2026-08-14

This commit is contained in:
Tangem 2025-10-01 15:42:14 +02:00
parent 4d7ae277a4
commit 689d98b3ff
2 changed files with 6 additions and 0 deletions

View file

@ -31,6 +31,7 @@ dependencies {
implementation(projects.core.navigation)
implementation(projects.core.decompose)
implementation(projects.common.routing)
implementation(projects.common.ui)
/** Domain modules */
implementation(projects.domain.models)

View file

@ -1,6 +1,7 @@
package com.tangem.features.disclaimer.impl.model
import com.tangem.common.routing.AppRoute
import com.tangem.common.ui.notifications.NotificationId
import com.tangem.core.decompose.di.ModelScoped
import com.tangem.core.decompose.model.Model
import com.tangem.core.decompose.model.ParamsContainer
@ -49,6 +50,10 @@ internal class DisclaimerModel @Inject constructor(
cardRepository.acceptTangemTOS()
val shouldAskPushPermission = notificationsRepository.shouldShowSubscribeOnNotificationsAfterUpdate()
if (shouldAskPushPermission) {
notificationsRepository.setShouldShowNotifications(
key = NotificationId.EnablePushesReminderNotification.key,
value = false,
)
router.push(AppRoute.PushNotification(AppRoute.PushNotification.Source.Stories))
} else {
neverToInitiallyAskPermissionUseCase(PUSH_PERMISSION)