decord/source/modules/go_live/GoLiveNotificationUtils.tsx

20 lines
945 B
TypeScript
Raw Normal View History

2026-08-05 07:35:12 +00:00
// Module ID: 14557
// Function ID: 14558
2026-07-20 16:05:17 +00:00
// Name: onGoLiveNotificationSettingsChanged
2026-08-05 07:35:12 +00:00
// Dependencies: [676, 3895, 3928, 698, 2]
2026-07-20 16:05:17 +00:00
// Exports: onGoLiveNotificationSettingsChanged
2026-08-05 07:35:12 +00:00
// Module 14557 (onGoLiveNotificationSettingsChanged)
2026-07-23 10:11:24 +00:00
import { AnalyticEvents } from "ME";
import { NotificationSettingsUpdateType as closure_4 } from "AccountNotificationFlags";
const result = require("explicitContentFromProto").fileFinishedImporting("modules/go_live/GoLiveNotificationUtils.tsx");
2026-07-20 16:05:17 +00:00
export const onGoLiveNotificationSettingsChanged = function onGoLiveNotificationSettingsChanged(go_live_notifications) {
2026-08-05 07:35:12 +00:00
const StreamNotificationsEnabled = require(3928) /* explicitContentFromProto */.StreamNotificationsEnabled;
2026-07-20 16:05:17 +00:00
StreamNotificationsEnabled.updateSetting(go_live_notifications);
2026-07-29 08:29:29 +00:00
let obj = importDefault(698);
2026-07-20 16:05:17 +00:00
obj = { update_type: constants.ACCOUNT, go_live_notifications };
obj.track(AnalyticEvents.NOTIFICATION_SETTINGS_UPDATED, obj);
};