Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4759.js (118.4 MB)
27 lines
1.6 KiB
TypeScript
27 lines
1.6 KiB
TypeScript
// Module ID: 15535
|
|
// Function ID: 15536
|
|
// Name: FriendOnlineNotificationUtils
|
|
// Dependencies: [4225, 1074, 1935, 1242, 2]
|
|
// Exports: onFriendOnlineNotificationSettingsChanged, onNotifyFriendsOnComeOnlineSettingsChanged
|
|
|
|
// Module 15535 (FriendOnlineNotificationUtils)
|
|
import Constants from "Constants" /* 1074 */;
|
|
import AnalyticsUtilsDefault from "AnalyticsUtils" /* 1242 */;
|
|
import UserSettings from "UserSettings" /* 1935 */;
|
|
import NotificationConstants from "NotificationConstants" /* 4225 */;
|
|
import size from "module_2" /* 2 */;
|
|
|
|
const constants = NotificationConstants.NotificationSettingsUpdateType;
|
|
const AnalyticEvents = Constants.AnalyticEvents;
|
|
const result = size.fileFinishedImporting("modules/notifications/friend_online/FriendOnlineNotificationUtils.tsx");
|
|
|
|
export const onFriendOnlineNotificationSettingsChanged = function onFriendOnlineNotificationSettingsChanged(friend_online_notifications) {
|
|
const EnableFriendOnlineNotifications = UserSettings.EnableFriendOnlineNotifications;
|
|
EnableFriendOnlineNotifications.updateSetting(friend_online_notifications);
|
|
AnalyticsUtilsDefault.track(AnalyticEvents.NOTIFICATION_SETTINGS_UPDATED, { update_type: constants.ACCOUNT, friend_online_notifications });
|
|
};
|
|
export const onNotifyFriendsOnComeOnlineSettingsChanged = function onNotifyFriendsOnComeOnlineSettingsChanged(notify_friends_on_come_online) {
|
|
const NotifyFriendsOnComeOnline = UserSettings.NotifyFriendsOnComeOnline;
|
|
NotifyFriendsOnComeOnline.updateSetting(notify_friends_on_come_online);
|
|
AnalyticsUtilsDefault.track(AnalyticEvents.NOTIFICATION_SETTINGS_UPDATED, { update_type: constants.ACCOUNT, notify_friends_on_come_online });
|
|
};
|