FAQ
Do I need to get a conversation before sending a message?
When sending a message, you do not need to retrieve any conversation-related parameters beforehand. Here's how it works:
- Private Chat: Only the
userIDparameter is required. - Group Chat: Only the
groupIDparameter is required.
When should I call getOneConversation?
When a user initiates a chat from the client, the chat window UI typically displays conversation-related information.
- If the user selects a conversation from the conversation list to start chatting:
- The conversation information is already included in the conversation list, so there's no need to call
getOneConversation.
- The conversation information is already included in the conversation list, so there's no need to call
- If the user initiates a chat from another entry point:
- You need to call
getOneConversationfirst to retrieve the conversation information.
- You need to call
- Displaying conversation information in the chat UI:
- Based on product requirements, conversation information can be displayed in the chat UI.