This commit is contained in:
janisslsm committed 2026-11-01 12:12:55 +02:00
1 parent 1781d25a15
commit 732c0ad767
33051 files changed
+2591613 -3019689

No files matched your search

@@ -0,0 +1,47 @@
// Metro module 9952 (f9953).
import { useMemo } from "react";
import useTheme from "../../../hooks/useTheme";
import { createNativeStyleProperties } from "../../../design/components/Styles/native/createStyles";
import Module712 from "../../../_bundle/Module712";
import { RenderEmbeds, InlineEmbedMedia, InlineAttachmentMedia } from "../../user_settings/UserSettings";
import RowGenerator from "../../messages/native/renderer/RowGenerator";
import ChatItem from "../../../components_native/chat/ChatItem";
import { isIOS } from "../../../utils/PlatformUtils";
export function ForLaterMessageRow(props) {
const { message, lineClamp, maxHeight } = props;
const theme = useTheme();
let c17576_1 = createNativeStyleProperties({
seeMoreLabelColor: Module712.colors.TEXT_DEFAULT
})(theme);
const setting = RenderEmbeds.getSetting();
const setting2 = InlineEmbedMedia.getSetting();
const setting3 = InlineAttachmentMedia.getSetting();
return <ChatItem pointerEvents="none" horizontalOffset={0} modifyRow={function modifyRow(a0) {
if (lineClamp != null) {
a0.truncation = {
numberOfLines: lineClamp,
expandable: isIOS(),
seeMoreLabel: isIOS() ? "..." : "",
seeMoreLabelColor: c17576_1.seeMoreLabelColor
};
}
}} message={message} rowGenerator={useMemo(() => {
const rowGenerator = new RowGenerator();
rowGenerator.setOptions({
renderEmbeds: setting,
inlineEmbedMedia: setting2,
inlineAttachmentMedia: setting3,
renderReplies: false,
renderExecutedCommands: false,
animateEmoji: false,
renderGiftCode: false,
renderActivityInstanceEmbed: false,
renderActivityInviteEmbed: false,
renderThreadEmbeds: false,
renderForumPostActions: false,
ignoreMentioned: true,
shouldDisableInteractiveComponents: true
});
return rowGenerator;
}, [setting, setting2, setting3])} maxHeight={maxHeight} />;
}