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:Returns
The updated ChatMessage returned by the server, without
reactionCounts, userReactions and grants. The stored copy keeps the reactions it already had.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.

