24 lines
1.3 KiB
TypeScript
24 lines
1.3 KiB
TypeScript
// Module ID: 15502
|
|
// Function ID: 15503
|
|
// Name: onFriendAnniversaryNotificationSettingsChanged
|
|
// Dependencies: [1074, 4212, 1935, 1242, 2]
|
|
// Exports: onFriendAnniversaryNotificationSettingsChanged
|
|
|
|
// Module 15502 (onFriendAnniversaryNotificationSettingsChanged)
|
|
import set from "set" /* 2 */;
|
|
import ME from "ME" /* 1074 */;
|
|
import expandEventPropertiesDefault from "expandEventProperties" /* 1242 */;
|
|
import explicitContentFromProto from "explicitContentFromProto" /* 1935 */;
|
|
import AccountNotificationFlags from "AccountNotificationFlags" /* 4212 */;
|
|
|
|
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);
|
|
};
|