refactor: Remove unused `description` from attachments render
Merged
DO
6mo ago+38+38+01234567890123456789-283-283-012345678901234567890123456789
Proposed changes (including videos or screenshots)
Summary
- Remove
descriptionMdfield fromMessageAttachmentBasetype - Remove
descriptionMdparsing fromBeforeSaveMarkdownParserandparseMessageTextToAstMarkdown - Remove visible description rendering from all file attachment components (Image, Audio, Video, Generic)
- Remove
descriptionMdfallbacks from copy/report message actions - Clean up related tests
The descriptionMd field was a parsed markdown AST of the attachment description, rendered as text above file attachments. This is no longer needed as description is being repurposed exclusively for image alt text.
Test plan
- Upload an image — verify no description text renders above the image
- Upload audio/video/generic files — verify no regressions
- Copy and report message actions still work on file messages
Issue(s)
Steps to test or reproduce
Further comments
Summary by CodeRabbit
- Changes
- Attachment descriptions no longer display in audio, video, image, and generic file previews, exported PDFs, email notifications, transcripts, and exported attachment payloads.
- Copy/report fallbacks, message editing, previews, thread titles, decrypted-message display, and normalized previews now prefer attachment titles or message text instead of descriptions.
- Auto-translation and translation providers no longer send or derive from attachment descriptions.
- Public typing: descriptionMd removed; tests updated.