49 lines
1.7 KiB
TypeScript
49 lines
1.7 KiB
TypeScript
// Module ID: 16820
|
|
// Function ID: 16821
|
|
// Name: showPendingNotification
|
|
// Dependencies: [676, 14919, 1435, 1236, 16821, 4393, 2]
|
|
// Exports: showAcceptedNotification, showPendingNotification
|
|
|
|
// Module 16820 (showPendingNotification)
|
|
import set from "set" /* 2 */;
|
|
import ME from "ME" /* 676 */;
|
|
import getSystemLocale from "getSystemLocale" /* 1236 */;
|
|
import getAvatarURLDefault from "getAvatarURL" /* 1435 */;
|
|
import _modDef14919 from "module_14919" /* 14919 */;
|
|
|
|
const FriendsSections = ME.FriendsSections;
|
|
const result = set.fileFinishedImporting("utils/RelationshipUtils.tsx");
|
|
|
|
export const showPendingNotification = function showPendingNotification(user) {
|
|
const intl = getSystemLocale.intl;
|
|
let obj = _modDef14919;
|
|
const stringResult = intl.string(getSystemLocale.t["t3+Af3"]);
|
|
obj = {
|
|
omitViewTracking: true,
|
|
omitClickTracking: true,
|
|
tag: user.id,
|
|
onClick: () => {
|
|
callback(table[4]).transitionToSection(constants.PENDING, { explicit: true });
|
|
},
|
|
isUserAvatar: true
|
|
};
|
|
obj.showNotification(getAvatarURLDefault.getUserAvatarURL(user), user.username, stringResult, {}, obj);
|
|
};
|
|
export const showAcceptedNotification = function showAcceptedNotification(user) {
|
|
const _require = user;
|
|
const intl = _require(1236).intl;
|
|
let obj = _modDef14919;
|
|
const stringResult = intl.string(_require(1236).t.MYr3Ka);
|
|
obj = {
|
|
omitViewTracking: true,
|
|
omitClickTracking: true,
|
|
tag: user.id,
|
|
onClick: () => {
|
|
let obj = closure_1_1(closure_1_2[5]);
|
|
obj = { recipientIds: user.id };
|
|
obj.openPrivateChannel(obj);
|
|
},
|
|
isUserAvatar: true
|
|
};
|
|
obj.showNotification(getAvatarURLDefault.getUserAvatarURL(user), user.username, stringResult, {}, obj);
|
|
};
|