decord/source/modules/notifications/friend_online/FriendOnlineNotificationUtils.tsx
2026-07-21 22:01:30 +00:00

26 lines
1.5 KiB
TypeScript

// Module ID: 14213
// Function ID: 107496
// Name: onFriendOnlineNotificationSettingsChanged
// Dependencies: []
// Exports: onFriendOnlineNotificationSettingsChanged, onNotifyFriendsOnComeOnlineSettingsChanged
// Module 14213 (onFriendOnlineNotificationSettingsChanged)
let closure_3 = require(dependencyMap[0]).NotificationSettingsUpdateType;
const AnalyticEvents = require(dependencyMap[1]).AnalyticEvents;
const _module = require(dependencyMap[4]);
const result = _module.fileFinishedImporting("modules/notifications/friend_online/FriendOnlineNotificationUtils.tsx");
export const onFriendOnlineNotificationSettingsChanged = function onFriendOnlineNotificationSettingsChanged(friend_online_notifications) {
const EnableFriendOnlineNotifications = require(dependencyMap[2]).EnableFriendOnlineNotifications;
EnableFriendOnlineNotifications.updateSetting(friend_online_notifications);
let obj = importDefault(dependencyMap[3]);
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 = require(dependencyMap[2]).NotifyFriendsOnComeOnline;
NotifyFriendsOnComeOnline.updateSetting(notify_friends_on_come_online);
let obj = importDefault(dependencyMap[3]);
obj = { update_type: constants.ACCOUNT, notify_friends_on_come_online };
obj.track(AnalyticEvents.NOTIFICATION_SETTINGS_UPDATED, obj);
};