SDKsReact NativeEnterprise
Get conversations in a group
Query a conversation group and its paginated conversations.
Call getConversationGroupInfoWithConversations() to get a conversation group and its paginated conversation list.
const result = await OpenIMSDK.getConversationGroupInfoWithConversations({
conversationGroupID,
pagination: {
pageNumber: 1,
showNumber: 20,
},
});Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
conversationGroupID | string | Yes | Conversation-group ID to query. |
pagination.pageNumber | number | Yes | Page number, starting at 1. |
pagination.showNumber | number | Yes | Number of conversations per page. |
Return result
The call returns an object with these fields:
| Field | Type | Description |
|---|---|---|
group | ConversationGroup | Current group information. |
conversationTotal | number | Total number of conversations in the group. |
conversationElems | ConversationItem[] | Conversation details for the current page. |
Stop requesting pages after the number of loaded conversations reaches conversationTotal. See Retrieve the conversation list for conversation fields and Conversation group overview for group fields.
Was this page helpful?