Quote when editing messages

When editing a message that contains a quote, two issues arise:

  1. Loss of Existing Quote: If a message is edited after quoting someone (e.g., a previous message or external source), the original quote is removed upon saving the edit.
  2. Inability to Add New/Edit Quote: During the editing process, users are unable to add a new quote or edit the existing quote in the message. The functionality to quote a section of the message or another source is unavailable after the message has been edited.

Desired Behavior:

  • Quote Preservation: When a user edits a message that contains a quote, the original quote should be retained and preserved, ensuring that no information is lost in the process.
  • Quote Addition/Editing: The system should allow the user to add a quote into the edited message, as well as allow for the previous quote to be edited, providing the same quoting functionality available in new messages.

Rationale: Quoting is a vital tool for maintaining context and clarity in conversations. Allowing users to edit their messages without losing quotes or the ability to add new ones ensures that the integrity of the conversation is maintained, especially in scenarios where quotes provide important reference or context.