decord/source/utils/RelationshipUtils.tsx

50 lines
1.7 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 16788
// Function ID: 16789
2026-07-29 08:29:29 +00:00
// Name: showPendingNotification
2026-08-24 06:08:38 +00:00
// Dependencies: [676, 14889, 1435, 1236, 16789, 4775, 2]
2026-07-20 16:05:17 +00:00
// Exports: showAcceptedNotification, showPendingNotification
2026-08-24 06:08:38 +00:00
// Module 16788 (showPendingNotification)
import set from "set" /* 2 */;
import ME from "ME" /* 676 */;
import getSystemLocale from "getSystemLocale" /* 1236 */;
import getAvatarURLDefault from "getAvatarURL" /* 1435 */;
import _modDef14889 from "module_14889" /* 14889 */;
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
const FriendsSections = ME.FriendsSections;
const result = set.fileFinishedImporting("utils/RelationshipUtils.tsx");
2026-07-20 16:05:17 +00:00
export const showPendingNotification = function showPendingNotification(user) {
2026-08-24 06:08:38 +00:00
const intl = getSystemLocale.intl;
let obj = _modDef14889;
const stringResult = intl.string(getSystemLocale.t["t3+Af3"]);
2026-07-29 08:29:29 +00:00
obj = {
omitViewTracking: true,
omitClickTracking: true,
tag: user.id,
onClick: () => {
callback(table[4]).transitionToSection(constants.PENDING, { explicit: true });
},
isUserAvatar: true
};
2026-08-24 06:08:38 +00:00
obj.showNotification(getAvatarURLDefault.getUserAvatarURL(user), user.username, stringResult, {}, obj);
2026-07-20 16:05:17 +00:00
};
export const showAcceptedNotification = function showAcceptedNotification(user) {
2026-07-23 10:11:24 +00:00
const _require = user;
2026-07-29 08:29:29 +00:00
const intl = _require(1236).intl;
2026-08-24 06:08:38 +00:00
let obj = _modDef14889;
2026-07-29 08:29:29 +00:00
const stringResult = intl.string(_require(1236).t.MYr3Ka);
obj = {
omitViewTracking: true,
omitClickTracking: true,
tag: user.id,
onClick: () => {
2026-08-24 06:08:38 +00:00
let obj = closure_1_1(closure_1_2[5]);
2026-07-29 08:29:29 +00:00
obj = { recipientIds: user.id };
obj.openPrivateChannel(obj);
},
isUserAvatar: true
};
2026-08-24 06:08:38 +00:00
obj.showNotification(getAvatarURLDefault.getUserAvatarURL(user), user.username, stringResult, {}, obj);
2026-07-20 16:05:17 +00:00
};