Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
22 lines
1.2 KiB
TypeScript
22 lines
1.2 KiB
TypeScript
// Module ID: 15596
|
|
// Function ID: 15597
|
|
// Name: ServerTrendingNotificationUtils
|
|
// Dependencies: [4288, 1074, 1935, 1240, 2]
|
|
// Exports: onServerTrendingNotificationSettingsChanged
|
|
|
|
// Module 15596 (ServerTrendingNotificationUtils)
|
|
import Constants from "Constants" /* 1074 */;
|
|
import AnalyticsUtilsDefault from "AnalyticsUtils" /* 1240 */;
|
|
import UserSettings from "UserSettings" /* 1935 */;
|
|
import NotificationConstants from "NotificationConstants" /* 4288 */;
|
|
import size from "module_2" /* 2 */;
|
|
|
|
const constants = NotificationConstants.NotificationSettingsUpdateType;
|
|
const AnalyticEvents = Constants.AnalyticEvents;
|
|
const result = size.fileFinishedImporting("modules/notifications/server_trending/ServerTrendingNotificationUtils.tsx");
|
|
|
|
export const onServerTrendingNotificationSettingsChanged = function onServerTrendingNotificationSettingsChanged(server_trending_notifications) {
|
|
const EnableServerTrendingNotifications = UserSettings.EnableServerTrendingNotifications;
|
|
EnableServerTrendingNotifications.updateSetting(server_trending_notifications);
|
|
AnalyticsUtilsDefault.track(AnalyticEvents.NOTIFICATION_SETTINGS_UPDATED, { update_type: constants.ACCOUNT, server_trending_notifications });
|
|
};
|