decord/source/modules/go_live/GoLiveNotificationUtils.tsx
2026-08-25 06:04:03 +00:00

24 lines
1.2 KiB
TypeScript

// Module ID: 14899
// Function ID: 14900
// Name: onGoLiveNotificationSettingsChanged
// Dependencies: [676, 4037, 4070, 698, 2]
// Exports: onGoLiveNotificationSettingsChanged
// Module 14899 (onGoLiveNotificationSettingsChanged)
import set from "set" /* 2 */;
import ME from "ME" /* 676 */;
import expandEventPropertiesDefault from "expandEventProperties" /* 698 */;
import AccountNotificationFlags from "AccountNotificationFlags" /* 4037 */;
import explicitContentFromProto from "explicitContentFromProto" /* 4070 */;
const AnalyticEvents = ME.AnalyticEvents;
let closure_4 = AccountNotificationFlags.NotificationSettingsUpdateType;
const result = set.fileFinishedImporting("modules/go_live/GoLiveNotificationUtils.tsx");
export const onGoLiveNotificationSettingsChanged = function onGoLiveNotificationSettingsChanged(go_live_notifications) {
const StreamNotificationsEnabled = explicitContentFromProto.StreamNotificationsEnabled;
StreamNotificationsEnabled.updateSetting(go_live_notifications);
let obj = expandEventPropertiesDefault;
obj = { update_type: constants.ACCOUNT, go_live_notifications };
obj.track(AnalyticEvents.NOTIFICATION_SETTINGS_UPDATED, obj);
};