decord/source/utils/RelationshipUtils.tsx

50 lines
1.7 KiB
TypeScript
Raw Normal View History

// Module ID: 17474
// Function ID: 17475
2026-07-29 08:29:29 +00:00
// Name: showPendingNotification
// Dependencies: [1074, 15515, 1396, 1114, 17475, 4573, 2]
2026-07-20 16:05:17 +00:00
// Exports: showAcceptedNotification, showPendingNotification
// Module 17474 (showPendingNotification)
2026-08-24 06:08:38 +00:00
import set from "set" /* 2 */;
import ME from "ME" /* 1074 */;
import getSystemLocale from "getSystemLocale" /* 1114 */;
import getAvatarURLDefault from "getAvatarURL" /* 1396 */;
import _modDef15515 from "module_15515" /* 15515 */;
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 = _modDef15515;
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;
const intl = _require(1114).intl;
let obj = _modDef15515;
const stringResult = intl.string(_require(1114).t.MYr3Ka);
2026-07-29 08:29:29 +00:00
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
};