feat: add emoji reactions to chat messages#125
Conversation
|
@sanjam3712 is attempting to deploy a commit to the Sunil Kumar's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
@sanjam3712 can you please take the latest pull from main and then make your changes |
e7c29c3 to
7c3aea2
Compare
|
Hi @0rigin-c0de ! I've pulled the latest from main and rebased my changes. The PR is now updated! 🙌 |
|
@sanjam3712 please check this locally |
|
Fix URL → POST |
…dle missing reactions field
|
Hi @0rigin-c0de ! I've addressed all the review points:
Please let me know if anything else needs fixing |
|
@sanjam3712 Nicely Done. |
|
Hi @0rigin-c0de ! I've now added emoji reactions to the DM/friends chat as well: Frontend (DirectMessage.jsx):
Backend (directMessages.js):
Please let me know if anything else needs fixing! 🙌 |
Closes #124
What this PR does
Adds emoji reactions to chat messages in PiperChat, a core Discord feature that was missing. Users can hover over any message, click the 😊 button, and pick from 8 emojis. Reactions appear below messages with counts and sync in real time via Socket.IO.
Changes Made
Backend (server/)
reactionsarray field to Chat.js message schemaPOST /toggle_reactionendpoint in routes/chat.jsreaction_updatedSocket.IO event to all clients in the channelFrontend (frontend/)
Mockup Screenshot:
How it works