decord/source/modules/go_live/GoLiveNotificationUtils.tsx

23 lines
1.1 KiB
TypeScript
Raw Normal View History

// Module ID: 15713
// Function ID: 15714
// Name: GoLiveNotificationUtils
// Dependencies: [1074, 4374, 1936, 1241, 2]
2026-07-20 16:05:17 +00:00
// Exports: onGoLiveNotificationSettingsChanged
// Module 15713 (GoLiveNotificationUtils)
import Constants from "Constants" /* 1074 */;
import AnalyticsUtilsDefault from "AnalyticsUtils" /* 1241 */;
import UserSettings from "UserSettings" /* 1936 */;
import NotificationConstants from "NotificationConstants" /* 4374 */;
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);
AnalyticsUtilsDefault.track(AnalyticEvents.NOTIFICATION_SETTINGS_UPDATED, { update_type: constants.ACCOUNT, go_live_notifications });
2026-07-20 16:05:17 +00:00
};