decord/source/modules/notifications/friend_online/FriendOnlineNotificationUtils.tsx
2026-08-25 06:04:03 +00:00

31 lines
1.8 KiB
TypeScript

// Module ID: 14905
// Function ID: 14906
// Name: onFriendOnlineNotificationSettingsChanged
// Dependencies: [4037, 676, 4070, 698, 2]
// Exports: onFriendOnlineNotificationSettingsChanged, onNotifyFriendsOnComeOnlineSettingsChanged
// Module 14905 (onFriendOnlineNotificationSettingsChanged)
import set from "set" /* 2 */;
import ME from "ME" /* 676 */;
import expandEventPropertiesDefault from "expandEventProperties" /* 698 */;
import AccountNotificationFlags from "AccountNotificationFlags" /* 4037 */;
import explicitContentFromProto from "explicitContentFromProto" /* 4070 */;
let closure_3 = AccountNotificationFlags.NotificationSettingsUpdateType;
const AnalyticEvents = ME.AnalyticEvents;
const result = set.fileFinishedImporting("modules/notifications/friend_online/FriendOnlineNotificationUtils.tsx");
export const onFriendOnlineNotificationSettingsChanged = function onFriendOnlineNotificationSettingsChanged(friend_online_notifications) {
const EnableFriendOnlineNotifications = explicitContentFromProto.EnableFriendOnlineNotifications;
EnableFriendOnlineNotifications.updateSetting(friend_online_notifications);
let obj = expandEventPropertiesDefault;
obj = { update_type: constants.ACCOUNT, friend_online_notifications };
obj.track(AnalyticEvents.NOTIFICATION_SETTINGS_UPDATED, obj);
};
export const onNotifyFriendsOnComeOnlineSettingsChanged = function onNotifyFriendsOnComeOnlineSettingsChanged(notify_friends_on_come_online) {
const NotifyFriendsOnComeOnline = explicitContentFromProto.NotifyFriendsOnComeOnline;
NotifyFriendsOnComeOnline.updateSetting(notify_friends_on_come_online);
let obj = expandEventPropertiesDefault;
obj = { update_type: constants.ACCOUNT, notify_friends_on_come_online };
obj.track(AnalyticEvents.NOTIFICATION_SETTINGS_UPDATED, obj);
};