decord/source/modules/premium/FriendAnniversaryNotificationUtils.tsx
2026-09-01 10:26:29 +00:00

24 lines
1.3 KiB
TypeScript

// Module ID: 15097
// Function ID: 15098
// Name: onFriendAnniversaryNotificationSettingsChanged
// Dependencies: [676, 4133, 4166, 698, 2]
// Exports: onFriendAnniversaryNotificationSettingsChanged
// Module 15097 (onFriendAnniversaryNotificationSettingsChanged)
import set from "set" /* 2 */;
import ME from "ME" /* 676 */;
import expandEventPropertiesDefault from "expandEventProperties" /* 698 */;
import AccountNotificationFlags from "AccountNotificationFlags" /* 4133 */;
import explicitContentFromProto from "explicitContentFromProto" /* 4166 */;
const AnalyticEvents = ME.AnalyticEvents;
let closure_4 = AccountNotificationFlags.NotificationSettingsUpdateType;
const result = set.fileFinishedImporting("modules/premium/FriendAnniversaryNotificationUtils.tsx");
export const onFriendAnniversaryNotificationSettingsChanged = function onFriendAnniversaryNotificationSettingsChanged(friend_anniversary_notifications) {
const EnableFriendAnniversaryNotifications = explicitContentFromProto.EnableFriendAnniversaryNotifications;
EnableFriendAnniversaryNotifications.updateSetting(friend_anniversary_notifications);
let obj = expandEventPropertiesDefault;
obj = { update_type: constants.ACCOUNT, friend_anniversary_notifications };
obj.track(AnalyticEvents.NOTIFICATION_SETTINGS_UPDATED, obj);
};