decord/alpha/source/modules/go_live/GoLiveNotificationUtils.tsx

25 lines
1.1 KiB
TypeScript
Raw Normal View History

2026-10-06 11:16:32 +00:00
// Module ID: 15338
// Function ID: 15339
// Name: GoLiveNotificationUtils
2026-10-06 11:16:32 +00:00
// Dependencies: [1085, 4528, 2028, 1252, 2]
2026-07-20 16:05:17 +00:00
// Exports: onGoLiveNotificationSettingsChanged
2026-10-06 11:16:32 +00:00
// Module 15338 (GoLiveNotificationUtils)
2026-10-03 08:58:59 +00:00
import Constants from "Constants" /* 1085 */;
import AnalyticsUtilsDefault from "AnalyticsUtils" /* 1252 */;
import UserSettings from "UserSettings" /* 2028 */;
2026-10-06 11:16:32 +00:00
import NotificationConstants from "NotificationConstants" /* 4528 */;
import size from "module_2" /* 2 */;
2026-07-23 10:11:24 +00:00
const AnalyticEvents = Constants.AnalyticEvents;
const constants = NotificationConstants.NotificationSettingsUpdateType;
const result = size.fileFinishedImporting("modules/go_live/GoLiveNotificationUtils.tsx");
2026-07-20 16:05:17 +00:00
export const onGoLiveNotificationSettingsChanged = function onGoLiveNotificationSettingsChanged(go_live_notifications) {
const StreamNotificationsEnabled = UserSettings.StreamNotificationsEnabled;
2026-07-20 16:05:17 +00:00
StreamNotificationsEnabled.updateSetting(go_live_notifications);
2026-10-03 08:58:59 +00:00
const obj = AnalyticsUtilsDefault;
const obj2 = { update_type: constants.ACCOUNT, go_live_notifications };
obj.track(AnalyticEvents.NOTIFICATION_SETTINGS_UPDATED, obj2);
2026-07-20 16:05:17 +00:00
};