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

20 lines
1 KiB
TypeScript
Raw Normal View History

2026-08-15 05:55:55 +00:00
// Module ID: 14818
// Function ID: 14819
2026-07-20 16:05:17 +00:00
// Name: onServerTrendingNotificationSettingsChanged
2026-08-15 05:55:55 +00:00
// Dependencies: [4033, 676, 4066, 698, 2]
2026-07-20 16:05:17 +00:00
// Exports: onServerTrendingNotificationSettingsChanged
2026-08-15 05:55:55 +00:00
// Module 14818 (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-08-15 05:55:55 +00:00
const EnableServerTrendingNotifications = require(4066) /* explicitContentFromProto */.EnableServerTrendingNotifications;
2026-07-20 16:05:17 +00:00
EnableServerTrendingNotifications.updateSetting(server_trending_notifications);
2026-07-29 08:29:29 +00:00
let obj = importDefault(698);
2026-07-20 16:05:17 +00:00
obj = { update_type: constants.ACCOUNT, server_trending_notifications };
obj.track(AnalyticEvents.NOTIFICATION_SETTINGS_UPDATED, obj);
};