2026-09-30 07:29:52 +00:00
|
|
|
// Module ID: 15258
|
|
|
|
|
// Function ID: 15259
|
2026-09-10 05:38:07 +00:00
|
|
|
// Name: GoLiveNotificationUtils
|
2026-09-30 07:29:52 +00:00
|
|
|
// Dependencies: [1074, 4512, 2021, 1241, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: onGoLiveNotificationSettingsChanged
|
|
|
|
|
|
2026-09-30 07:29:52 +00:00
|
|
|
// Module 15258 (GoLiveNotificationUtils)
|
2026-09-10 05:38:07 +00:00
|
|
|
import Constants from "Constants" /* 1074 */;
|
2026-09-15 14:23:42 +00:00
|
|
|
import AnalyticsUtilsDefault from "AnalyticsUtils" /* 1241 */;
|
2026-09-26 08:31:33 +00:00
|
|
|
import UserSettings from "UserSettings" /* 2021 */;
|
2026-09-30 07:29:52 +00:00
|
|
|
import NotificationConstants from "NotificationConstants" /* 4512 */;
|
2026-09-10 05:38:07 +00:00
|
|
|
import size from "module_2" /* 2 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-09-10 05:38:07 +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) {
|
2026-09-10 05:38:07 +00:00
|
|
|
const StreamNotificationsEnabled = UserSettings.StreamNotificationsEnabled;
|
2026-07-20 16:05:17 +00:00
|
|
|
StreamNotificationsEnabled.updateSetting(go_live_notifications);
|
2026-09-10 05:38:07 +00:00
|
|
|
AnalyticsUtilsDefault.track(AnalyticEvents.NOTIFICATION_SETTINGS_UPDATED, { update_type: constants.ACCOUNT, go_live_notifications });
|
2026-07-20 16:05:17 +00:00
|
|
|
};
|