19 lines
946 B
TypeScript
19 lines
946 B
TypeScript
// Module ID: 14379
|
|
// Function ID: 109999
|
|
// Name: onGoLiveNotificationSettingsChanged
|
|
// Dependencies: [653, 3770, 3803, 675, 2]
|
|
// Exports: onGoLiveNotificationSettingsChanged
|
|
|
|
// Module 14379 (onGoLiveNotificationSettingsChanged)
|
|
import { AnalyticEvents } from "ME";
|
|
import { NotificationSettingsUpdateType as closure_4 } from "AccountNotificationFlags";
|
|
|
|
const result = require("explicitContentFromProto").fileFinishedImporting("modules/go_live/GoLiveNotificationUtils.tsx");
|
|
|
|
export const onGoLiveNotificationSettingsChanged = function onGoLiveNotificationSettingsChanged(go_live_notifications) {
|
|
const StreamNotificationsEnabled = require(3803) /* explicitContentFromProto */.StreamNotificationsEnabled;
|
|
StreamNotificationsEnabled.updateSetting(go_live_notifications);
|
|
let obj = importDefault(675);
|
|
obj = { update_type: constants.ACCOUNT, go_live_notifications };
|
|
obj.track(AnalyticEvents.NOTIFICATION_SETTINGS_UPDATED, obj);
|
|
};
|