NTP-46402 | Notification Settings Action Change (#15922)

This commit is contained in:
Aparna Vadlamani
2025-04-25 16:57:19 +05:30
committed by GitHub
parent d873b5d1a0
commit dc37268ee6
2 changed files with 5 additions and 3 deletions

View File

@@ -79,10 +79,11 @@ fun NotificationScreenActionHandler(
)
}
FetchNotificationSettingScreenData -> {
is FetchNotificationSettingScreenData -> {
viewModel.fetchAlchemistScreen(
naeScreenName = AppSettingsScreenType.NotificationSettingsScreen.name,
notificationPermission = isPushNotificationPermissionEnabled,
notificationPermission =
action.pushNotificationPermission ?: isPushNotificationPermissionEnabled,
)
}

View File

@@ -10,7 +10,8 @@ package com.navi.common.uitron.model.action
import com.navi.common.model.NotificationSetting
import com.navi.uitron.model.action.TriggerApiAction
data object FetchNotificationSettingScreenData : TriggerApiAction()
data class FetchNotificationSettingScreenData(val pushNotificationPermission: Boolean? = null) :
TriggerApiAction()
data class UpdateNotificationSettingAction(val notificationSettings: List<NotificationSetting>) :
TriggerApiAction()