Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
49 lines
1.9 KiB
TypeScript
49 lines
1.9 KiB
TypeScript
// Module ID: 17589
|
|
// Function ID: 17590
|
|
// Name: RelationshipUtils
|
|
// Dependencies: [1074, 15603, 1396, 1114, 17590, 4649, 2]
|
|
// Exports: showAcceptedNotification, showPendingNotification
|
|
|
|
// Module 17589 (RelationshipUtils)
|
|
import Constants from "Constants" /* 1074 */;
|
|
import util from "util" /* 1114 */;
|
|
import AvatarUtilsDefault from "AvatarUtils" /* 1396 */;
|
|
import ChannelActionCreatorsDefault from "ChannelActionCreators" /* 4649 */;
|
|
import NotificationActionCreatorsDefault from "NotificationActionCreators" /* 15603 */;
|
|
import FriendsActionCreatorsDefault from "FriendsActionCreators" /* 17590 */;
|
|
import size from "module_2" /* 2 */;
|
|
|
|
const require = globalThis.__r;
|
|
|
|
const FriendsSections = Constants.FriendsSections;
|
|
const result = size.fileFinishedImporting("utils/RelationshipUtils.tsx");
|
|
|
|
export const showPendingNotification = function showPendingNotification(user) {
|
|
const intl = util.intl;
|
|
const stringResult = intl.string(util.t["t3+Af3"]);
|
|
const obj = NotificationActionCreatorsDefault;
|
|
obj.showNotification(AvatarUtilsDefault.getUserAvatarURL(user), user.username, stringResult, {}, {
|
|
omitViewTracking: true,
|
|
omitClickTracking: true,
|
|
tag: user.id,
|
|
onClick: () => {
|
|
FriendsActionCreatorsDefault.transitionToSection(constants.PENDING, { explicit: true });
|
|
},
|
|
isUserAvatar: true
|
|
});
|
|
};
|
|
export const showAcceptedNotification = function showAcceptedNotification(user) {
|
|
_require = user;
|
|
const intl = require("util").intl;
|
|
const stringResult = intl.string(require("util").t.MYr3Ka);
|
|
const obj = NotificationActionCreatorsDefault;
|
|
obj.showNotification(AvatarUtilsDefault.getUserAvatarURL(user), user.username, stringResult, {}, {
|
|
omitViewTracking: true,
|
|
omitClickTracking: true,
|
|
tag: user.id,
|
|
onClick: () => {
|
|
ChannelActionCreatorsDefault.openPrivateChannel({ recipientIds: user.id });
|
|
},
|
|
isUserAvatar: true
|
|
});
|
|
};
|