Overview
Returns an async function that updates a conversation’s details via the API. This is a low-level hook — it makes the PATCH request and returns the updated conversation without touching Redux state. Use it when you need direct control over when and how state is updated.Requires
ChatProvider in the component tree.Usage Example
Parameters
The hook returns a function. That function accepts:File ID for the avatar image. It must be a file the acting user uploaded that isn’t attached to anything else (
400 chat/invalid-avatar-file otherwise). Pass null to remove the current avatar.Returns
The updated Conversation object.
Notes
- This hook does not update Redux state. If you want the result reflected in the UI, dispatch
setConversationmanually or useuseConversationwhich handles this automatically. - For integration guidance, see Chat: Conversations.

