decord/alpha/source/modules/premium/FriendAnniversaryNotificationUtils.tsx

25 lines
1.2 KiB
TypeScript
Raw Permalink Normal View History

2026-10-13 12:43:34 +00:00
// Module ID: 16115
// Function ID: 16116
// Name: FriendAnniversaryNotificationUtils
2026-10-10 08:08:14 +00:00
// Dependencies: [1085, 4763, 2041, 1265, 2]
2026-07-20 16:05:17 +00:00
// Exports: onFriendAnniversaryNotificationSettingsChanged
2026-10-13 12:43:34 +00:00
// Module 16115 (FriendAnniversaryNotificationUtils)
2026-10-03 08:58:59 +00:00
import Constants from "Constants" /* 1085 */;
2026-10-09 10:00:15 +00:00
import AnalyticsUtilsDefault from "AnalyticsUtils" /* 1265 */;
import UserSettings from "UserSettings" /* 2041 */;
2026-10-10 08:08:14 +00:00
import NotificationConstants from "NotificationConstants" /* 4763 */;
import size from "module_2" /* 2 */;
2026-07-23 10:11:24 +00:00
const AnalyticEvents = Constants.AnalyticEvents;
const constants = NotificationConstants.NotificationSettingsUpdateType;
const result = size.fileFinishedImporting("modules/premium/FriendAnniversaryNotificationUtils.tsx");
2026-07-20 16:05:17 +00:00
export const onFriendAnniversaryNotificationSettingsChanged = function onFriendAnniversaryNotificationSettingsChanged(friend_anniversary_notifications) {
const EnableFriendAnniversaryNotifications = UserSettings.EnableFriendAnniversaryNotifications;
2026-07-20 16:05:17 +00:00
EnableFriendAnniversaryNotifications.updateSetting(friend_anniversary_notifications);
2026-10-03 08:58:59 +00:00
const obj = AnalyticsUtilsDefault;
const obj2 = { update_type: constants.ACCOUNT, friend_anniversary_notifications };
obj.track(AnalyticEvents.NOTIFICATION_SETTINGS_UPDATED, obj2);
2026-07-20 16:05:17 +00:00
};