Skip to content

[FEATURE] Add Message Editing Support #115

Description

@Akash504-ai

Feature Description

Allow users to edit messages they have sent within a configurable time window. Edited messages should display an "Edited" indicator while preserving the original sender and timestamp.

The feature should support both direct and group conversations without affecting existing messaging functionality.


Problem it solves

Users may accidentally send messages with typos, incorrect information, or incomplete content. Currently, they must send another message to correct the mistake, resulting in cluttered conversations.

An Edit Message feature improves the overall messaging experience by allowing users to quickly fix mistakes while maintaining conversation clarity.


Possible Solution

  • Add an Edit option to the message action menu for the message sender.
  • Allow editing only by the original sender.
  • Configure an editable time window (e.g., 15 minutes) or allow unlimited editing based on project settings.
  • Update the message content in the database while preserving metadata.
  • Display an Edited badge next to edited messages.
  • Broadcast edited messages in real time using Socket.IO so all participants see the update immediately.
  • Prevent editing of deleted messages.

Additional Context

Acceptance Criteria

  • Users can edit only their own messages.
  • Edited messages display an Edited indicator.
  • Changes are synchronized in real time for all participants.
  • Works in both private and group chats.
  • Existing message timestamps and sender information remain unchanged.
  • Existing messaging functionality remains unaffected.

This feature is inspired by modern messaging platforms such as WhatsApp, Telegram, Discord, and Slack, which allow users to correct sent messages while maintaining transparency through an edited indicator.

Metadata

Metadata

Assignees

No one assigned

    Fields

    No fields configured for Feature.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions