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

26 lines
1.5 KiB
TypeScript

// Module ID: 14766
// Function ID: 14767
// Name: onFriendOnlineNotificationSettingsChanged
// Dependencies: [4001, 676, 4034, 698, 2]
// Exports: onFriendOnlineNotificationSettingsChanged, onNotifyFriendsOnComeOnlineSettingsChanged
// Module 14766 (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(4034) /* 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(4034) /* 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);
};