Closed kuv2707 closed 1 week ago
Comment '@csoc-bot claim' to get this issue assigned or '@csoc-bot abandon' to get this issue unassigned.
@shivansh-bhatnagar18 Please take care of the design and UX that should be there for this.
@csoc-bot claim
@ritwik-69 This issue has been successfully assigned to you! 🚀
Description
We need to add a way to select a message to be replied. The design is subject to discussion. The implementation is mostly there:
ChatMessage
type has a fieldref
which stores the id of the message the current message is referring to.Possible design
Perhaps we can make it so that clicking on a message selects it for replying, and when sending the message, we include the selected message's id in the
ref
field. When displaying a message, we can take the content of the messageref
is pointing to, and truncate it to around 20 characters, and display it in a dark css filter before the actual message content.