mirror of
https://github.com/purrgrammer/grimoire.git
synced 2026-06-05 02:01:22 +02:00
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:
@@ -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>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user