2026-09-16 07:03:15 +00:00
|
|
|
// Module ID: 17683
|
|
|
|
|
// Function ID: 17684
|
2026-09-10 05:38:07 +00:00
|
|
|
// Name: RelationshipUtils
|
2026-09-16 07:03:15 +00:00
|
|
|
// Dependencies: [1074, 15630, 1397, 1115, 17684, 4651, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: showAcceptedNotification, showPendingNotification
|
|
|
|
|
|
2026-09-16 07:03:15 +00:00
|
|
|
// Module 17683 (RelationshipUtils)
|
2026-09-10 05:38:07 +00:00
|
|
|
import Constants from "Constants" /* 1074 */;
|
2026-09-15 14:23:42 +00:00
|
|
|
import util from "util" /* 1115 */;
|
|
|
|
|
import AvatarUtilsDefault from "AvatarUtils" /* 1397 */;
|
2026-09-16 07:03:15 +00:00
|
|
|
import ChannelActionCreatorsDefault from "ChannelActionCreators" /* 4651 */;
|
|
|
|
|
import NotificationActionCreatorsDefault from "NotificationActionCreators" /* 15630 */;
|
|
|
|
|
import FriendsActionCreatorsDefault from "FriendsActionCreators" /* 17684 */;
|
2026-09-10 05:38:07 +00:00
|
|
|
import size from "module_2" /* 2 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-09-10 05:38:07 +00:00
|
|
|
const require = globalThis.__r;
|
|
|
|
|
|
|
|
|
|
const FriendsSections = Constants.FriendsSections;
|
|
|
|
|
const result = size.fileFinishedImporting("utils/RelationshipUtils.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export const showPendingNotification = function showPendingNotification(user) {
|
2026-09-10 05:38:07 +00:00
|
|
|
const intl = util.intl;
|
|
|
|
|
const stringResult = intl.string(util.t["t3+Af3"]);
|
|
|
|
|
const obj = NotificationActionCreatorsDefault;
|
|
|
|
|
obj.showNotification(AvatarUtilsDefault.getUserAvatarURL(user), user.username, stringResult, {}, {
|
2026-07-29 08:29:29 +00:00
|
|
|
omitViewTracking: true,
|
|
|
|
|
omitClickTracking: true,
|
|
|
|
|
tag: user.id,
|
|
|
|
|
onClick: () => {
|
2026-09-10 05:38:07 +00:00
|
|
|
FriendsActionCreatorsDefault.transitionToSection(constants.PENDING, { explicit: true });
|
2026-07-29 08:29:29 +00:00
|
|
|
},
|
|
|
|
|
isUserAvatar: true
|
2026-09-10 05:38:07 +00:00
|
|
|
});
|
2026-07-20 16:05:17 +00:00
|
|
|
};
|
|
|
|
|
export const showAcceptedNotification = function showAcceptedNotification(user) {
|
2026-09-10 05:38:07 +00:00
|
|
|
_require = user;
|
|
|
|
|
const intl = require("util").intl;
|
|
|
|
|
const stringResult = intl.string(require("util").t.MYr3Ka);
|
|
|
|
|
const obj = NotificationActionCreatorsDefault;
|
|
|
|
|
obj.showNotification(AvatarUtilsDefault.getUserAvatarURL(user), user.username, stringResult, {}, {
|
2026-07-29 08:29:29 +00:00
|
|
|
omitViewTracking: true,
|
|
|
|
|
omitClickTracking: true,
|
|
|
|
|
tag: user.id,
|
|
|
|
|
onClick: () => {
|
2026-09-10 05:38:07 +00:00
|
|
|
ChannelActionCreatorsDefault.openPrivateChannel({ recipientIds: user.id });
|
2026-07-29 08:29:29 +00:00
|
|
|
},
|
|
|
|
|
isUserAvatar: true
|
2026-09-10 05:38:07 +00:00
|
|
|
});
|
2026-07-20 16:05:17 +00:00
|
|
|
};
|