decord/alpha/source/modules/go_live/GoLiveNotificationUtils.tsx
github-actions 6eea20b8e1 chore: update source for alpha 348.3
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/05xxx/module_5014.js (118.4 MB)
2026-09-24 10:59:02 +00:00

22 lines
1.1 KiB
TypeScript

// Module ID: 15854
// Function ID: 15855
// Name: GoLiveNotificationUtils
// Dependencies: [1074, 4477, 2020, 1241, 2]
// Exports: onGoLiveNotificationSettingsChanged
// Module 15854 (GoLiveNotificationUtils)
import Constants from "Constants" /* 1074 */;
import AnalyticsUtilsDefault from "AnalyticsUtils" /* 1241 */;
import UserSettings from "UserSettings" /* 2020 */;
import NotificationConstants from "NotificationConstants" /* 4477 */;
import size from "module_2" /* 2 */;
const AnalyticEvents = Constants.AnalyticEvents;
const constants = NotificationConstants.NotificationSettingsUpdateType;
const result = size.fileFinishedImporting("modules/go_live/GoLiveNotificationUtils.tsx");
export const onGoLiveNotificationSettingsChanged = function onGoLiveNotificationSettingsChanged(go_live_notifications) {
const StreamNotificationsEnabled = UserSettings.StreamNotificationsEnabled;
StreamNotificationsEnabled.updateSetting(go_live_notifications);
AnalyticsUtilsDefault.track(AnalyticEvents.NOTIFICATION_SETTINGS_UPDATED, { update_type: constants.ACCOUNT, go_live_notifications });
};