2026-09-11 10:30:06 +00:00
|
|
|
// Module ID: 15573
|
|
|
|
|
// Function ID: 15574
|
2026-09-10 05:38:07 +00:00
|
|
|
// Name: ServerTrendingNotificationUtils
|
2026-09-11 10:30:06 +00:00
|
|
|
// Dependencies: [4258, 1074, 1935, 1242, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: onServerTrendingNotificationSettingsChanged
|
|
|
|
|
|
2026-09-11 10:30:06 +00:00
|
|
|
// Module 15573 (ServerTrendingNotificationUtils)
|
2026-09-10 05:38:07 +00:00
|
|
|
import Constants from "Constants" /* 1074 */;
|
|
|
|
|
import AnalyticsUtilsDefault from "AnalyticsUtils" /* 1242 */;
|
|
|
|
|
import UserSettings from "UserSettings" /* 1935 */;
|
2026-09-11 10:30:06 +00:00
|
|
|
import NotificationConstants from "NotificationConstants" /* 4258 */;
|
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 constants = NotificationConstants.NotificationSettingsUpdateType;
|
|
|
|
|
const AnalyticEvents = Constants.AnalyticEvents;
|
|
|
|
|
const result = size.fileFinishedImporting("modules/notifications/server_trending/ServerTrendingNotificationUtils.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export const onServerTrendingNotificationSettingsChanged = function onServerTrendingNotificationSettingsChanged(server_trending_notifications) {
|
2026-09-10 05:38:07 +00:00
|
|
|
const EnableServerTrendingNotifications = UserSettings.EnableServerTrendingNotifications;
|
2026-07-20 16:05:17 +00:00
|
|
|
EnableServerTrendingNotifications.updateSetting(server_trending_notifications);
|
2026-09-10 05:38:07 +00:00
|
|
|
AnalyticsUtilsDefault.track(AnalyticEvents.NOTIFICATION_SETTINGS_UPDATED, { update_type: constants.ACCOUNT, server_trending_notifications });
|
2026-07-20 16:05:17 +00:00
|
|
|
};
|