decord/source/modules/notifications/profile_updates/ProfileUpdatesNotificationUtils.tsx

23 lines
1.2 KiB
TypeScript
Raw Normal View History

// Module ID: 15594
// Function ID: 15595
// Name: ProfileUpdatesNotificationUtils
// Dependencies: [4288, 1074, 1935, 1240, 2]
2026-07-20 16:05:17 +00:00
// Exports: onProfileUpdatesNotificationSettingsChanged
// Module 15594 (ProfileUpdatesNotificationUtils)
import Constants from "Constants" /* 1074 */;
import AnalyticsUtilsDefault from "AnalyticsUtils" /* 1240 */;
import UserSettings from "UserSettings" /* 1935 */;
import NotificationConstants from "NotificationConstants" /* 4288 */;
import size from "module_2" /* 2 */;
2026-07-23 10:11:24 +00:00
const constants = NotificationConstants.NotificationSettingsUpdateType;
const AnalyticEvents = Constants.AnalyticEvents;
const result = size.fileFinishedImporting("modules/notifications/profile_updates/ProfileUpdatesNotificationUtils.tsx");
2026-07-20 16:05:17 +00:00
export const onProfileUpdatesNotificationSettingsChanged = function onProfileUpdatesNotificationSettingsChanged(profile_updates_notifications) {
const EnableProfileUpdatesNotifications = UserSettings.EnableProfileUpdatesNotifications;
2026-07-20 16:05:17 +00:00
EnableProfileUpdatesNotifications.updateSetting(profile_updates_notifications);
AnalyticsUtilsDefault.track(AnalyticEvents.NOTIFICATION_SETTINGS_UPDATED, { update_type: constants.ACCOUNT, profile_updates_notifications });
2026-07-20 16:05:17 +00:00
};