EmbeddedChat
EmbeddedChat copied to clipboard
Nested quote attachments do not render message content or media correctly
Description:
Media attachments (images, audio, video) inside quoted messages are not rendered correctly when they are nested inside another attachment structure.
Additionally, when a nested quote contains only text (no media), the UI incorrectly displays a download icon and a (0.00 kB) file size, which is misleading.
Steps to reproduce:
- Send a message containing a media attachment (image/audio/video).
- Quote that message.
- Quote the quoted message again (nested quote).
- Observe how the content is rendered inside the nested quote.
The same issue also occurs with nested text only quoted messages.
Expected behavior:
- Images should render as images.
- Audio and video should render with the appropriate player.
- Text only quotes should render as text without download icons.
- File size metadata should not display 0.00 kB when size information is unavailable.
Actual behavior:
- Media inside nested quotes is displayed as a generic document icon instead of rendering the media.
- A misleading (0.00 kB) file size and download icon appear for nested text-only quotes.
Nested text-only quote issue:
Nested media quote issue: