Skip to content

Conversation

@Khizarshah01
Copy link
Contributor

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

  • Media attachments in nested quotes render correctly
  • Text-only nested quotes do not show download icons
  • 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.

@Spiral-Memory
Copy link
Collaborator

Thanks for fixing this @Khizarshah01
I'm reviewing it.

Copy link
Collaborator

@Spiral-Memory Spiral-Memory left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Can you please attach a video of the current scenario in all variants and show how it looks? Thanks.

@Khizarshah01
Copy link
Contributor Author

Thanks for the review, @Spiral-Memory
I have attached a video demonstrating the current behavior across all variants

Screencast.from.2026-01-17.15-55-22.mp4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Nested quote attachments do not render message content or media correctly

2 participants