SrigadaAkshayKumar/chatapp-frontend
Add Message Deletion Feature (Both Sides)
Open
#7 opened on Feb 9, 2025
Backendenhancementhelp wanted
Repository metrics
- Stars
- (1 star)
- PR merge metrics
- (PR metrics pending)
Description
🛑 Add Message Deletion Feature (Both Sides)
📌 Description
Currently, users can only delete messages from their own view, but the recipient still sees them. This feature will allow users to delete messages for both sender and recipient, enhancing privacy and control over conversations.
🚀 Feature Requirements
- ✅ Add a "Delete for Me" option (removes message only for the user).
- ✅ Add a "Delete for Everyone" option (removes message from both sender and recipient's chat).
- ✅ Ensure a confirmation dialog before deletion.
- ✅ Replace deleted messages with a placeholder like "This message was deleted."
- ✅ Set a time limit (e.g., messages can only be deleted within X minutes after sending).
🛠 Tech Stack
- Frontend: JavaScript / React
- Backend: Firebase / Node.js
🔄 Possible Implementation Steps
- Update the message database schema to support soft deletion.
- Implement delete options in the chat UI.
- Ensure real-time updates so deleted messages disappear instantly.
- Test for edge cases, such as deleting a message while the recipient is online.
🏷 Labels
🔹 enhancement
🔹 help wanted