decord/source/modules/go_live/GoLiveNotificationUtils.tsx
2026-08-27 16:17:25 +00:00

24 lines
1.2 KiB
TypeScript

// Module ID: 15043
// Function ID: 15044
// Name: onGoLiveNotificationSettingsChanged
// Dependencies: [676, 4101, 4134, 698, 2]
// Exports: onGoLiveNotificationSettingsChanged
// Module 15043 (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);
};