Overview
Returns an async function that patches an existing message’s content. The updated message is dispatched to Redux on success. TheeditedAt field is set by the server and reflects the time of the most recent edit.
Requires
ChatProvider in the component tree.Usage Example
Parameters
The hook returns a function. That function accepts:The ID of the conversation that contains the message.
The ID of the message to edit.
New text content.
New or cleared GIF attachment.
Updated mentions list.
Updated metadata.
Returns
The updated ChatMessage returned by the server.
Notes
- Other participants see the update in real-time via the
message:updatedsocket event, which is handled automatically byChatProvider. - For integration guidance, see Chat: Messages.

