decord/source/modules/notifications/profile_updates/ProfileUpdatesNotificationUtils.tsx
github-actions a36fe4ec9c chore: update source for alpha 347.0
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
2026-09-14 20:04:03 +00:00

22 lines
1.2 KiB
TypeScript

// Module ID: 15594
// Function ID: 15595
// Name: ProfileUpdatesNotificationUtils
// Dependencies: [4288, 1074, 1935, 1240, 2]
// 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 */;
const constants = NotificationConstants.NotificationSettingsUpdateType;
const AnalyticEvents = Constants.AnalyticEvents;
const result = size.fileFinishedImporting("modules/notifications/profile_updates/ProfileUpdatesNotificationUtils.tsx");
export const onProfileUpdatesNotificationSettingsChanged = function onProfileUpdatesNotificationSettingsChanged(profile_updates_notifications) {
const EnableProfileUpdatesNotifications = UserSettings.EnableProfileUpdatesNotifications;
EnableProfileUpdatesNotifications.updateSetting(profile_updates_notifications);
AnalyticsUtilsDefault.track(AnalyticEvents.NOTIFICATION_SETTINGS_UPDATED, { update_type: constants.ACCOUNT, profile_updates_notifications });
};