decord/source/utils/RelationshipUtils.tsx
github-actions 67d978d9fb chore: update source for alpha 346.0
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9672_m.js (378.6 MB)
2026-09-07 16:44:02 +00:00

49 lines
1.7 KiB
TypeScript

// Module ID: 17477
// Function ID: 17478
// Name: showPendingNotification
// Dependencies: [1074, 15518, 1396, 1114, 17478, 4573, 2]
// Exports: showAcceptedNotification, showPendingNotification
// Module 17477 (showPendingNotification)
import set from "set" /* 2 */;
import ME from "ME" /* 1074 */;
import getSystemLocale from "getSystemLocale" /* 1114 */;
import getAvatarURLDefault from "getAvatarURL" /* 1396 */;
import _modDef15518 from "module_15518" /* 15518 */;
const FriendsSections = ME.FriendsSections;
const result = set.fileFinishedImporting("utils/RelationshipUtils.tsx");
export const showPendingNotification = function showPendingNotification(user) {
const intl = getSystemLocale.intl;
let obj = _modDef15518;
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(1114).intl;
let obj = _modDef15518;
const stringResult = intl.string(_require(1114).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);
};