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

23 lines
1.1 KiB
TypeScript
Raw Normal View History

// Module ID: 15773
// Function ID: 15774
// Name: GoLiveNotificationUtils
// Dependencies: [1078, 4444, 2023, 1245, 2]
// Exports: onGoLiveNotificationSettingsChanged
// Module 15773 (GoLiveNotificationUtils)
import Constants from "Constants" /* 1078 */;
import AnalyticsUtilsDefault from "AnalyticsUtils" /* 1245 */;
import UserSettings from "UserSettings" /* 2023 */;
import NotificationConstants from "NotificationConstants" /* 4444 */;
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 });
};