RocketChat / EmbeddedChat

An easy to use full-stack component (ReactJS) embedding Rocket.Chat into your webapp
https://www.npmjs.com/package/@embeddedchat/react
107 stars 214 forks source link

[BUG]: No Fallback Icon in file menu when media type doesn't support preview #515

Closed Spiral-Memory closed 3 months ago

Spiral-Memory commented 3 months ago

Description:

No fallback icon appears in the file menu when the media type doesn't support previews. Additionally, the support for Download and Delete File will be helpful.

Steps to reproduce:

  1. Start Embedded Chat.
  2. Send a video attachment or a text attachment, etc., which doesn't have a preview.
  3. Observe that no fallback icon is present.

Expected behavior:

A fallback icon should be displayed when the image type is not supported.

Actual behavior:

No fallback icon is provided.

Additional details:

In addition to this bug, there is an additional feature request to add "Download" and "Delete" options for every file. This enhancement would assist users in easily managing their files from the file menu.

https://github.com/RocketChat/EmbeddedChat/assets/78961432/d7e583b3-a0fa-4add-84e1-711918b8789d