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

24 lines
1.2 KiB
TypeScript

// Module ID: 14978
// Function ID: 14979
// Name: onGoLiveNotificationSettingsChanged
// Dependencies: [676, 4101, 4134, 698, 2]
// Exports: onGoLiveNotificationSettingsChanged
// Module 14978 (onGoLiveNotificationSettingsChanged)
import set from "set" /* 2 */;
import ME from "ME" /* 676 */;
import expandEventPropertiesDefault from "expandEventProperties" /* 698 */;
import AccountNotificationFlags from "AccountNotificationFlags" /* 4101 */;
import explicitContentFromProto from "explicitContentFromProto" /* 4134 */;
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);
};