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

feat: add reply to message functionality #561

Closed Spiral-Memory closed 1 month ago

Spiral-Memory commented 2 months ago

Brief Title

This PR adds a feature to quote message

Acceptance Criteria fulfillment

Fixes #560

Video/Screenshots

https://github.com/RocketChat/EmbeddedChat/assets/78961432/ba57637d-b305-4f34-8195-d002d15436d5

Spiral-Memory commented 2 months ago

Hey @sidmohanty11 , currently, I've added support for quoting a single message in EC. In RC, multiple messages can also be quoted, but I'm not adding that feature for now, as we typically reply to a single message. It can be added later on if necessary. Currently, I don't think that will be a valuable addition. What's your opinion on this?

Also, while quoting attachments, in RC, it shows image preview and download button, which I feel is unnecessary considering an in-chat app.

Please do let me know your thoughts. If required, I will add those or later if required, it can be added.

Additionally, the UI for when recursive messages are quoted is being handled for both the normal UI and for this addition as well in Issue #563 by Akshun.