decord/source/modules/notifications/server_trending/ServerTrendingNotificationUtils.tsx
2026-08-13 07:00:46 +00:00

19 lines
1 KiB
TypeScript

// Module ID: 14773
// Function ID: 14774
// Name: onServerTrendingNotificationSettingsChanged
// Dependencies: [4001, 676, 4034, 698, 2]
// Exports: onServerTrendingNotificationSettingsChanged
// Module 14773 (onServerTrendingNotificationSettingsChanged)
import { NotificationSettingsUpdateType as closure_3 } from "AccountNotificationFlags";
import { AnalyticEvents } from "ME";
const result = require("explicitContentFromProto").fileFinishedImporting("modules/notifications/server_trending/ServerTrendingNotificationUtils.tsx");
export const onServerTrendingNotificationSettingsChanged = function onServerTrendingNotificationSettingsChanged(server_trending_notifications) {
const EnableServerTrendingNotifications = require(4034) /* explicitContentFromProto */.EnableServerTrendingNotifications;
EnableServerTrendingNotifications.updateSetting(server_trending_notifications);
let obj = importDefault(698);
obj = { update_type: constants.ACCOUNT, server_trending_notifications };
obj.track(AnalyticEvents.NOTIFICATION_SETTINGS_UPDATED, obj);
};