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

20 lines
1 KiB
TypeScript
Raw Normal View History

2026-08-12 06:57:52 +00:00
// Module ID: 14764
// Function ID: 14765
2026-07-20 16:05:17 +00:00
// Name: onServerTrendingNotificationSettingsChanged
2026-08-12 06:57:52 +00:00
// Dependencies: [4001, 676, 4034, 698, 2]
2026-07-20 16:05:17 +00:00
// Exports: onServerTrendingNotificationSettingsChanged
2026-08-12 06:57:52 +00:00
// Module 14764 (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-12 06:57:52 +00:00
const EnableServerTrendingNotifications = require(4034) /* 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);
};