decord/source/utils/RelationshipUtils.tsx

32 lines
1.3 KiB
TypeScript
Raw Normal View History

2026-07-27 11:26:19 +00:00
// Module ID: 16233
// Function ID: 125903
2026-07-20 16:05:17 +00:00
// Name: showNotification
2026-07-27 11:26:19 +00:00
// Dependencies: [653, 14411, 1392, 1212, 16234, 4141, 2]
2026-07-20 16:05:17 +00:00
// Exports: showAcceptedNotification, showPendingNotification
2026-07-27 11:26:19 +00:00
// Module 16233 (showNotification)
2026-07-23 10:11:24 +00:00
import { FriendsSections } from "ME";
2026-07-20 16:05:17 +00:00
function showNotification(id, arg1, onClick) {
2026-07-27 11:26:19 +00:00
let obj = importDefault(14411);
2026-07-23 10:11:24 +00:00
obj = { omitViewTracking: true, omitClickTracking: true, tag: id.id, onClick, isUserAvatar: true };
obj.showNotification(importDefault(1392).getUserAvatarURL(id), id.username, arg1, {}, obj);
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
const result = require("getAvatarURL").fileFinishedImporting("utils/RelationshipUtils.tsx");
2026-07-20 16:05:17 +00:00
export const showPendingNotification = function showPendingNotification(user) {
2026-07-23 10:11:24 +00:00
const intl = require(1212) /* getSystemLocale */.intl;
showNotification(user, intl.string(require(1212) /* getSystemLocale */.t["t3+Af3"]), () => {
outer1_1(outer1_2[4]).transitionToSection(outer1_3.PENDING, { explicit: true });
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(1212).intl;
showNotification(user, intl.string(_require(1212).t.MYr3Ka), () => {
let obj = outer1_1(outer1_2[5]);
obj = { recipientIds: user.id };
2026-07-20 16:05:17 +00:00
obj.openPrivateChannel(obj);
});
};