Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable Message Editing and Deleting in Chat Rooms #22

Open
iammuho opened this issue Aug 30, 2023 · 0 comments
Open

Enable Message Editing and Deleting in Chat Rooms #22

iammuho opened this issue Aug 30, 2023 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@iammuho
Copy link
Owner

iammuho commented Aug 30, 2023

Implement functionality that allows users to edit or delete their messages in chat rooms. This will enhance user experience by allowing corrections and removals.

Requirements:
API Endpoints: Extend existing APIs to handle the editing and deleting of messages. The operations should be restricted to the original message author.

Sample API Extensions:

PUT /message/:messageID/edit
DELETE /message/:messageID/delete
  • Event Types: Define event types to communicate message edit and delete actions.

EventTypeMessageEdited: Message has been edited.
EventTypeMessageDeleted: Message has been deleted.
WebSocket Notification: Notify room participants of any message edits or deletes via WebSockets.

  • Database Changes: Ensure the edited message is updated in the database, and deleted messages are either removed or flagged as deleted, depending on your data retention policy.
  • Client-Side Behavior: Update the frontend to reflect these changes in real-time without requiring a page reload. (Note: While this task focuses on the backend, the frontend will also need adjustments.)
  • Testing: Include unit and integration tests to confirm that the feature functions as expected.

Success Criteria:

  • Users should be able to edit their own messages.
  • Users should be able to delete their own messages.
  • All participants in the room should be notified of these actions in real-time.
@iammuho iammuho added enhancement New feature or request good first issue Good for newcomers labels Aug 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant