decord/source/modules/go_live/GoLiveNotificationUtils.tsx
2026-08-13 07:00:46 +00:00

19 lines
945 B
TypeScript

// Module ID: 14760
// Function ID: 14761
// Name: onGoLiveNotificationSettingsChanged
// Dependencies: [676, 4001, 4034, 698, 2]
// Exports: onGoLiveNotificationSettingsChanged
// Module 14760 (onGoLiveNotificationSettingsChanged)
import { AnalyticEvents } from "ME";
import { NotificationSettingsUpdateType as closure_4 } from "AccountNotificationFlags";
const result = require("explicitContentFromProto").fileFinishedImporting("modules/go_live/GoLiveNotificationUtils.tsx");
export const onGoLiveNotificationSettingsChanged = function onGoLiveNotificationSettingsChanged(go_live_notifications) {
const StreamNotificationsEnabled = require(4034) /* explicitContentFromProto */.StreamNotificationsEnabled;
StreamNotificationsEnabled.updateSetting(go_live_notifications);
let obj = importDefault(698);
obj = { update_type: constants.ACCOUNT, go_live_notifications };
obj.track(AnalyticEvents.NOTIFICATION_SETTINGS_UPDATED, obj);
};