diff --git a/services/frontend/src/features/messages/components/MessageCard.tsx b/services/frontend/src/features/messages/components/MessageCard.tsx index 69a95dd..1715c9f 100644 --- a/services/frontend/src/features/messages/components/MessageCard.tsx +++ b/services/frontend/src/features/messages/components/MessageCard.tsx @@ -158,6 +158,12 @@ function MessageRow({ ); const hasImages = imageAttachments.length > 0; + /** Hide the fallback text ("[Attachment: ...]", "[Sticker: ...]", "[Embed]") when the actual media IS already shown visually. */ + const isFallbackText = + /^\[(Attachment|Sticker):/i.test(displayContent) || + /^\[Embed\]/i.test(displayContent); + const shouldShowContent = displayContent && !isFallbackText; + const handleReanalyze = async () => { setIsReanalyzing(true); try { @@ -215,8 +221,8 @@ function MessageRow({ - {/* Content */} - {displayContent ? ( + {/* Content — hidden when it's just an "[Attachment: ...]" fallback and the image is shown below */} + {shouldShowContent ? (