2026-08-24 06:08:38 +00:00
|
|
|
// Module ID: 10508
|
|
|
|
|
// Function ID: 10509
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: MessagePreviewReactions
|
2026-08-24 06:08:38 +00:00
|
|
|
// Dependencies: [19, 5019, 9103, 21, 589, 7177, 7197, 10497, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: default
|
|
|
|
|
|
2026-08-24 06:08:38 +00:00
|
|
|
// Module 10508 (MessagePreviewReactions)
|
|
|
|
|
import noopAll from "noop" /* 19 */;
|
|
|
|
|
import closure_3 from "removePendingListFetch" /* 5019 */;
|
|
|
|
|
import closure_4 from "messages" /* 9103 */;
|
|
|
|
|
import { jsx } from "jsxProd" /* 21 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
|
|
|
|
const require = arg1;
|
2026-08-24 06:08:38 +00:00
|
|
|
noopAll;
|
2026-07-20 16:05:17 +00:00
|
|
|
let closure_6 = [];
|
2026-08-24 06:08:38 +00:00
|
|
|
const result = require("set").fileFinishedImporting("modules/reactions/native/MessagePreviewReactions.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export default function MessagePreviewReactions(emoji) {
|
|
|
|
|
({ channelId, messageId } = emoji);
|
2026-07-29 08:29:29 +00:00
|
|
|
let obj = channelId(589);
|
2026-08-24 06:08:38 +00:00
|
|
|
const items = [closure_4, closure_3];
|
2026-07-29 08:29:29 +00:00
|
|
|
const items1 = [channelId, messageId];
|
|
|
|
|
const stateFromStores = obj.useStateFromStores(items, () => {
|
2026-08-24 06:08:38 +00:00
|
|
|
let message = closure_1_4.getMessage(messageId);
|
2026-07-29 08:29:29 +00:00
|
|
|
if (message == null) {
|
2026-08-24 06:08:38 +00:00
|
|
|
message = closure_1_3.getMessage(channelId, messageId);
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
2026-08-24 06:08:38 +00:00
|
|
|
return null != message ? message.reactions : closure_1_6;
|
2026-07-29 08:29:29 +00:00
|
|
|
}, items1);
|
2026-08-24 06:08:38 +00:00
|
|
|
obj = { value: messageId(7177)(messageId(7197).MESSAGE_PREVIEW_REACTIONS).analyticsLocations, children: null };
|
2026-07-29 08:29:29 +00:00
|
|
|
if (stateFromStores.length > 0) {
|
|
|
|
|
obj = { channelId: null, messageId: null, emoji: null, reactions: null };
|
|
|
|
|
obj[0] = channelId;
|
|
|
|
|
obj[1] = messageId;
|
|
|
|
|
obj[2] = emoji.emoji;
|
|
|
|
|
obj[3] = stateFromStores;
|
2026-08-24 06:08:38 +00:00
|
|
|
let tmp4Result = tmp4(tmp(10497).MessageReactionsContent, obj);
|
2026-07-20 16:05:17 +00:00
|
|
|
} else {
|
2026-08-24 06:08:38 +00:00
|
|
|
tmp4Result = tmp4(tmp(10497).MessageReactionsEmpty, {});
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
obj[1] = tmp4Result;
|
2026-08-24 06:08:38 +00:00
|
|
|
return jsx(channelId(7177).AnalyticsLocationProvider, { value: messageId(7177)(messageId(7197).MESSAGE_PREVIEW_REACTIONS).analyticsLocations, children: null });
|
2026-07-20 16:05:17 +00:00
|
|
|
};
|