EmbeddedChat icon indicating copy to clipboard operation
EmbeddedChat copied to clipboard

fix: correctly render nested quotes media attachments in quotes

Open Khizarshah01 opened this issue 1 month ago • 1 comments

Brief Title

Fix nested quoted media rendering and incorrect attachment metadata

Description

This PR fixes an issue where media attachments (images, audio, video) inside nested quoted messages were rendered as generic file attachments.

It also prevents misleading (0.00 kB) file size metadata from appearing on nested text only quotes.

Acceptance Criteria Fulfillment

  • [x] Media attachments in nested quotes render correctly
  • [x] Text-only nested quotes do not show download icons
  • [x] Invalid or missing file size metadata is hidden

Fixes #1074

Video/Screenshots

Screenshot from 2026-01-16 20-31-35 Screenshot from 2026-01-16 20-31-10

PR Test Details

Note: The PR will be ready for live testing at https://rocketchat.github.io/EmbeddedChat/pulls/pr-<pr_number> after approval. Contributors are requested to replace <pr_number> with the actual PR number.

Khizarshah01 avatar Jan 16 '26 15:01 Khizarshah01