decord/source/modules/notifications/friend_online/FriendOnlineNotificationUtils.tsx
2026-07-29 08:29:29 +00:00

26 lines
1.5 KiB
TypeScript

// Module ID: 14463
// Function ID: 14464
// Name: onFriendOnlineNotificationSettingsChanged
// Dependencies: [3829, 676, 3862, 698, 2]
// Exports: onFriendOnlineNotificationSettingsChanged, onNotifyFriendsOnComeOnlineSettingsChanged
// Module 14463 (onFriendOnlineNotificationSettingsChanged)
import { NotificationSettingsUpdateType as closure_3 } from "AccountNotificationFlags";
import { AnalyticEvents } from "ME";
const result = require("explicitContentFromProto").fileFinishedImporting("modules/notifications/friend_online/FriendOnlineNotificationUtils.tsx");
export const onFriendOnlineNotificationSettingsChanged = function onFriendOnlineNotificationSettingsChanged(friend_online_notifications) {
const EnableFriendOnlineNotifications = require(3862) /* explicitContentFromProto */.EnableFriendOnlineNotifications;
EnableFriendOnlineNotifications.updateSetting(friend_online_notifications);
let obj = importDefault(698);
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(3862) /* explicitContentFromProto */.NotifyFriendsOnComeOnline;
NotifyFriendsOnComeOnline.updateSetting(notify_friends_on_come_online);
let obj = importDefault(698);
obj = { update_type: constants.ACCOUNT, notify_friends_on_come_online };
obj.track(AnalyticEvents.NOTIFICATION_SETTINGS_UPDATED, obj);
};