feat: disable inline media and event embeds in chat replies

Pass options to RichText component in ReplyPreview to disable:
- All media types (images, videos, audio) via showMedia: false
- Event embeds (note/nevent/naddr mentions) via showEventEmbeds: false

Chat reply previews now only show text content for cleaner, more
focused message context display.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
Alejandro Gómez
2026-01-12 10:59:19 +01:00
parent bff51857d6
commit a3eec2e3c9

View File

@@ -64,7 +64,10 @@ export const ReplyPreview = memo(function ReplyPreview({
className="font-medium flex-shrink-0"
/>
<div className="line-clamp-1 overflow-hidden flex-1 min-w-0">
<RichText event={replyEvent} />
<RichText
event={replyEvent}
options={{ showMedia: false, showEventEmbeds: false }}
/>
</div>
</div>
);