decord/source/modules/notifications/friend_online/FriendOnlineNotificationUtils.tsx

27 lines
1.5 KiB
TypeScript
Raw Normal View History

2026-07-27 11:26:19 +00:00
// Module ID: 14397
// Function ID: 110150
2026-07-20 16:05:17 +00:00
// Name: onFriendOnlineNotificationSettingsChanged
2026-07-25 08:10:48 +00:00
// Dependencies: [3771, 653, 3804, 675, 2]
2026-07-20 16:05:17 +00:00
// Exports: onFriendOnlineNotificationSettingsChanged, onNotifyFriendsOnComeOnlineSettingsChanged
2026-07-27 11:26:19 +00:00
// Module 14397 (onFriendOnlineNotificationSettingsChanged)
2026-07-23 10:11:24 +00:00
import { NotificationSettingsUpdateType as closure_3 } from "AccountNotificationFlags";
import { AnalyticEvents } from "ME";
const result = require("explicitContentFromProto").fileFinishedImporting("modules/notifications/friend_online/FriendOnlineNotificationUtils.tsx");
2026-07-20 16:05:17 +00:00
export const onFriendOnlineNotificationSettingsChanged = function onFriendOnlineNotificationSettingsChanged(friend_online_notifications) {
2026-07-25 08:10:48 +00:00
const EnableFriendOnlineNotifications = require(3804) /* explicitContentFromProto */.EnableFriendOnlineNotifications;
2026-07-20 16:05:17 +00:00
EnableFriendOnlineNotifications.updateSetting(friend_online_notifications);
2026-07-23 10:11:24 +00:00
let obj = importDefault(675);
2026-07-20 16:05:17 +00:00
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) {
2026-07-25 08:10:48 +00:00
const NotifyFriendsOnComeOnline = require(3804) /* explicitContentFromProto */.NotifyFriendsOnComeOnline;
2026-07-20 16:05:17 +00:00
NotifyFriendsOnComeOnline.updateSetting(notify_friends_on_come_online);
2026-07-23 10:11:24 +00:00
let obj = importDefault(675);
2026-07-20 16:05:17 +00:00
obj = { update_type: constants.ACCOUNT, notify_friends_on_come_online };
obj.track(AnalyticEvents.NOTIFICATION_SETTINGS_UPDATED, obj);
};