decord/source/modules/notifications/server_trending/ServerTrendingNotificationUtils.tsx
2026-08-26 06:04:24 +00:00

24 lines
1.3 KiB
TypeScript

// Module ID: 14991
// Function ID: 14992
// Name: onServerTrendingNotificationSettingsChanged
// Dependencies: [4101, 676, 4134, 698, 2]
// Exports: onServerTrendingNotificationSettingsChanged
// Module 14991 (onServerTrendingNotificationSettingsChanged)
import set from "set" /* 2 */;
import ME from "ME" /* 676 */;
import expandEventPropertiesDefault from "expandEventProperties" /* 698 */;
import AccountNotificationFlags from "AccountNotificationFlags" /* 4101 */;
import explicitContentFromProto from "explicitContentFromProto" /* 4134 */;
let closure_3 = AccountNotificationFlags.NotificationSettingsUpdateType;
const AnalyticEvents = ME.AnalyticEvents;
const result = set.fileFinishedImporting("modules/notifications/server_trending/ServerTrendingNotificationUtils.tsx");
export const onServerTrendingNotificationSettingsChanged = function onServerTrendingNotificationSettingsChanged(server_trending_notifications) {
const EnableServerTrendingNotifications = explicitContentFromProto.EnableServerTrendingNotifications;
EnableServerTrendingNotifications.updateSetting(server_trending_notifications);
let obj = expandEventPropertiesDefault;
obj = { update_type: constants.ACCOUNT, server_trending_notifications };
obj.track(AnalyticEvents.NOTIFICATION_SETTINGS_UPDATED, obj);
};