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

25 lines
1.3 KiB
TypeScript
Raw Normal View History

2026-09-03 10:05:34 +00:00
// Module ID: 15350
// Function ID: 15351
2026-07-20 16:05:17 +00:00
// Name: onServerTrendingNotificationSettingsChanged
2026-09-02 09:53:35 +00:00
// Dependencies: [4133, 673, 4166, 695, 2]
2026-07-20 16:05:17 +00:00
// Exports: onServerTrendingNotificationSettingsChanged
2026-09-03 10:05:34 +00:00
// Module 15350 (onServerTrendingNotificationSettingsChanged)
2026-08-24 06:08:38 +00:00
import set from "set" /* 2 */;
2026-09-02 09:53:35 +00:00
import ME from "ME" /* 673 */;
import expandEventPropertiesDefault from "expandEventProperties" /* 695 */;
2026-09-01 10:26:29 +00:00
import AccountNotificationFlags from "AccountNotificationFlags" /* 4133 */;
import explicitContentFromProto from "explicitContentFromProto" /* 4166 */;
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
let closure_3 = AccountNotificationFlags.NotificationSettingsUpdateType;
const AnalyticEvents = ME.AnalyticEvents;
const result = set.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-24 06:08:38 +00:00
const EnableServerTrendingNotifications = explicitContentFromProto.EnableServerTrendingNotifications;
2026-07-20 16:05:17 +00:00
EnableServerTrendingNotifications.updateSetting(server_trending_notifications);
2026-08-24 06:08:38 +00:00
let obj = expandEventPropertiesDefault;
2026-07-20 16:05:17 +00:00
obj = { update_type: constants.ACCOUNT, server_trending_notifications };
obj.track(AnalyticEvents.NOTIFICATION_SETTINGS_UPDATED, obj);
};