decord/source/modules/notifications/friend_online/FriendOnlineNotificationUtils.tsx
github-actions cd74c1f217 chore: update source for alpha 345.5
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9667_m.js (378 MB)
2026-09-05 10:56:28 +00:00

31 lines
1.8 KiB
TypeScript

// Module ID: 15502
// Function ID: 15503
// Name: onFriendOnlineNotificationSettingsChanged
// Dependencies: [4212, 1074, 1935, 1242, 2]
// Exports: onFriendOnlineNotificationSettingsChanged, onNotifyFriendsOnComeOnlineSettingsChanged
// Module 15502 (onFriendOnlineNotificationSettingsChanged)
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 */;
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);
};