Skip to main content

Concept Explanation

What is a Conversation?

A Conversation is the interaction record between a user and a specific channel, containing the user’s message history in that channel, unread status, last active time, and other information. Conversations are the fundamental data structure for chat lists in user interfaces.

Why are Conversations Important?

  • Chat List: The conversation list is the chat list that users see, displaying all ongoing conversations
  • Unread Management: Conversations record the number of unread messages for each chat, helping users quickly understand which chats have new messages
  • Quick Access: Through the conversation list, users can quickly access recent chat records

Relationship with Other Concepts

  • Channel: Each conversation corresponds to a channel; the conversation’s channel_id is the channel’s ID
  • Message: Conversations display the last message of that channel and the number of unread messages
  • User: Conversations belong to specific users; different users see different conversation lists

Core Structure

Conversations contain the following core attributes:

Conversation Example

EasySDK Code Examples

Conversation Management

Clear Unread Messages

Conversations are sorted by last message time and serve as the fundamental data structure for chat lists in user interfaces.