Overview
Fetches the full details of a single conversation by ID and providesupdate and deleteConversation actions. The conversation is loaded once on mount if it is not already in Redux state, and kept in sync by conversation:updated socket events.
Requires
ChatProvider in the component tree.Usage Example
Props
The ID of the conversation to fetch and manage.
Returns
The full Conversation object, or
null while loading or if not found.true while the initial fetch is in progress.update
(params: { name?: string; description?: string; avatarFileId?: string | null; postingPermission?: 'members' | 'admins' }) => Promise<Conversation | undefined>
Updates the conversation. Dispatches the updated conversation to Redux on success.
conversationId is already bound from the hook props and should not be passed here.| Field | Type | Description |
|---|---|---|
name | string | New conversation name |
description | string | New description |
avatarFileId | string | null | File ID for the avatar image |
postingPermission | 'members' | 'admins' | Who can post (space chats only) |
Deletes the conversation. Does not update local Redux state — the caller is responsible for navigating away or removing the conversation from local lists.
Notes
- For integration guidance, see Chat: Conversations.

