decord/source/modules/threads/native/components/ThreadParentMessage.tsx

62 lines
2.9 KiB
TypeScript
Raw Normal View History

// Module ID: 16622
// Function ID: 16623
2026-07-20 16:05:17 +00:00
// Name: ThreadChannelStarterMessage
// Dependencies: [19, 7595, 4781, 21, 7932, 504, 5123, 1100, 8652, 2]
2026-07-20 16:05:17 +00:00
// Exports: ThreadChannelStarterMessage, ThreadCreationStarterMessage
// Module 16622 (ThreadChannelStarterMessage)
2026-08-24 06:08:38 +00:00
import noopAll from "noop" /* 19 */;
import initialize from "initialize" /* 504 */;
import PressableBase from "PressableBase" /* 5123 */;
import setOptionsDefault from "setOptions" /* 7932 */;
import DCDChatItemDefault from "DCDChatItem" /* 8652 */;
import closure_3 from "processMessage" /* 7595 */;
import { ReferencedMessageState } from "processMessage" /* 7595 */;
import closure_5 from "reinjectEphemerals" /* 4781 */;
2026-08-24 06:08:38 +00:00
import { jsx } from "jsxProd" /* 21 */;
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
require = arg1;
noopAll;
let obj = new setOptionsDefault();
2026-07-29 08:29:29 +00:00
obj.setOptions({ renderCodedLinks: false, renderGiftCode: false, renderActivityInstanceEmbed: false, renderActivityInviteEmbed: false, renderEmbeds: true, ignoreMentioned: true, inlineAttachmentMedia: true, inlineEmbedMedia: true, renderReactions: false, renderReplies: true, renderThreadEmbeds: false });
2026-08-24 06:08:38 +00:00
const result = require("set").fileFinishedImporting("modules/threads/native/components/ThreadParentMessage.tsx");
2026-07-20 16:05:17 +00:00
export const ThreadChannelStarterMessage = function ThreadChannelStarterMessage(arg0) {
2026-07-23 10:11:24 +00:00
({ guildId: require, messageId: importDefault, channelId: dependencyMap } = arg0);
2026-08-24 06:08:38 +00:00
obj = initialize;
const items = [closure_3];
const stateFromStores = obj.useStateFromStores(items, () => closure_1_3.getMessage(closure_2, closure_1));
2026-07-20 16:05:17 +00:00
let state;
2026-07-29 08:29:29 +00:00
if (stateFromStores != null) {
2026-07-20 16:05:17 +00:00
state = stateFromStores.state;
}
2026-07-29 08:29:29 +00:00
let tmp5 = null;
2026-07-20 16:05:17 +00:00
if (state === ReferencedMessageState.LOADED) {
2026-07-29 08:29:29 +00:00
obj = { accessibilityRole: "button", onPress: null, children: null };
obj[1] = function onPress() {
2026-08-24 06:08:38 +00:00
closure_1_0(closure_1_2[7]).transitionToGuild(closure_0, closure_2, closure_1);
2026-07-20 16:05:17 +00:00
};
2026-08-24 06:08:38 +00:00
obj = { rowGenerator: null, message: null, pointerEvents: "none" };
2026-07-29 08:29:29 +00:00
obj[0] = obj;
obj[1] = stateFromStores.message;
2026-08-24 06:08:38 +00:00
obj[2] = jsx(DCDChatItemDefault, { rowGenerator: null, message: null, pointerEvents: "none" });
tmp5 = jsx(PressableBase.PressableOpacity, { rowGenerator: null, message: null, pointerEvents: "none" });
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
return tmp5;
2026-07-20 16:05:17 +00:00
};
export const ThreadCreationStarterMessage = function ThreadCreationStarterMessage(arg0) {
2026-07-23 10:11:24 +00:00
({ messageId: require, channelId: importDefault } = arg0);
2026-08-24 06:08:38 +00:00
obj = initialize;
const items = [closure_5];
const stateFromStores = obj.useStateFromStores(items, () => closure_1_5.getMessage(closure_1, closure_0));
2026-07-29 08:29:29 +00:00
let tmp3 = null;
2026-07-20 16:05:17 +00:00
if (null != stateFromStores) {
2026-08-24 06:08:38 +00:00
obj = { rowGenerator: null, message: null, style: null, pointerEvents: "none" };
2026-07-29 08:29:29 +00:00
obj[0] = obj;
obj[1] = stateFromStores;
2026-08-15 05:55:55 +00:00
obj[2] = { overflow: "visible" };
2026-08-24 06:08:38 +00:00
tmp3 = jsx(DCDChatItemDefault, { rowGenerator: null, message: null, style: null, pointerEvents: "none" });
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
return tmp3;
2026-07-20 16:05:17 +00:00
};