decord/source/utils/RelationshipUtils.tsx

50 lines
1.7 KiB
TypeScript
Raw Normal View History

2026-08-25 06:04:03 +00:00
// Module ID: 16820
// Function ID: 16821
2026-07-29 08:29:29 +00:00
// Name: showPendingNotification
2026-08-25 06:04:03 +00:00
// Dependencies: [676, 14919, 1435, 1236, 16821, 4393, 2]
2026-07-20 16:05:17 +00:00
// Exports: showAcceptedNotification, showPendingNotification
2026-08-25 06:04:03 +00:00
// Module 16820 (showPendingNotification)
2026-08-24 06:08:38 +00:00
import set from "set" /* 2 */;
import ME from "ME" /* 676 */;
import getSystemLocale from "getSystemLocale" /* 1236 */;
import getAvatarURLDefault from "getAvatarURL" /* 1435 */;
2026-08-25 06:04:03 +00:00
import _modDef14919 from "module_14919" /* 14919 */;
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;
2026-08-25 06:04:03 +00:00
let obj = _modDef14919;
2026-08-24 06:08:38 +00:00
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-25 06:04:03 +00:00
let obj = _modDef14919;
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
};