24 lines
1.3 KiB
TypeScript
24 lines
1.3 KiB
TypeScript
// Module ID: 15334
|
|
// Function ID: 15335
|
|
// Name: onProfileUpdatesNotificationSettingsChanged
|
|
// Dependencies: [4133, 673, 4166, 695, 2]
|
|
// Exports: onProfileUpdatesNotificationSettingsChanged
|
|
|
|
// Module 15334 (onProfileUpdatesNotificationSettingsChanged)
|
|
import set from "set" /* 2 */;
|
|
import ME from "ME" /* 673 */;
|
|
import expandEventPropertiesDefault from "expandEventProperties" /* 695 */;
|
|
import AccountNotificationFlags from "AccountNotificationFlags" /* 4133 */;
|
|
import explicitContentFromProto from "explicitContentFromProto" /* 4166 */;
|
|
|
|
let closure_3 = AccountNotificationFlags.NotificationSettingsUpdateType;
|
|
const AnalyticEvents = ME.AnalyticEvents;
|
|
const result = set.fileFinishedImporting("modules/notifications/profile_updates/ProfileUpdatesNotificationUtils.tsx");
|
|
|
|
export const onProfileUpdatesNotificationSettingsChanged = function onProfileUpdatesNotificationSettingsChanged(profile_updates_notifications) {
|
|
const EnableProfileUpdatesNotifications = explicitContentFromProto.EnableProfileUpdatesNotifications;
|
|
EnableProfileUpdatesNotifications.updateSetting(profile_updates_notifications);
|
|
let obj = expandEventPropertiesDefault;
|
|
obj = { update_type: constants.ACCOUNT, profile_updates_notifications };
|
|
obj.track(AnalyticEvents.NOTIFICATION_SETTINGS_UPDATED, obj);
|
|
};
|