decord/source/modules/notifications/server_trending/ServerTrendingNotificationUtils.tsx

20 lines
1 KiB
TypeScript
Raw Normal View History

2026-07-25 08:10:48 +00:00
// Module ID: 14403
// Function ID: 110166
2026-07-20 16:05:17 +00:00
// Name: onServerTrendingNotificationSettingsChanged
2026-07-25 08:10:48 +00:00
// Dependencies: [3771, 653, 3804, 675, 2]
2026-07-20 16:05:17 +00:00
// Exports: onServerTrendingNotificationSettingsChanged
2026-07-25 08:10:48 +00:00
// Module 14403 (onServerTrendingNotificationSettingsChanged)
2026-07-23 10:11:24 +00:00
import { NotificationSettingsUpdateType as closure_3 } from "AccountNotificationFlags";
import { AnalyticEvents } from "ME";
const result = require("explicitContentFromProto").fileFinishedImporting("modules/notifications/server_trending/ServerTrendingNotificationUtils.tsx");
2026-07-20 16:05:17 +00:00
export const onServerTrendingNotificationSettingsChanged = function onServerTrendingNotificationSettingsChanged(server_trending_notifications) {
2026-07-25 08:10:48 +00:00
const EnableServerTrendingNotifications = require(3804) /* explicitContentFromProto */.EnableServerTrendingNotifications;
2026-07-20 16:05:17 +00:00
EnableServerTrendingNotifications.updateSetting(server_trending_notifications);
2026-07-23 10:11:24 +00:00
let obj = importDefault(675);
2026-07-20 16:05:17 +00:00
obj = { update_type: constants.ACCOUNT, server_trending_notifications };
obj.track(AnalyticEvents.NOTIFICATION_SETTINGS_UPDATED, obj);
};