Browse SDKs · React Native
Platform
SDKsReact NativeEnterprise

Get conversation group info with conversations

Retrieve conversation group details and its paginated conversation items using the OpenIM React Native SDK.

Copy

Retrieve group metadata alongside a paginated list of conversations in that group:

const result = await OpenIMSDK.getConversationGroupInfoWithConversations({
  conversationGroupID,
  pagination: {
    pageNumber: 1,
    showNumber: 20,
  },
});

Parameters

ParameterTypeRequiredDescription
conversationGroupIDstringYesTarget conversation group ID to query.
pagination.pageNumbernumberYesPage number starting from 1.
pagination.showNumbernumberYesNumber of conversation items per page.

Return value

Resolves to an object containing:

FieldTypeDescription
groupConversationGroupConversation group details.
conversationTotalnumberTotal number of conversations associated with this group.
conversationElemsConversationItem[]Conversation items retrieved for the current page.

When the accumulated conversations reach conversationTotal, further pagination can stop. Reconcile groups by conversationGroupID and individual conversations by conversationID. For conversation properties, see Retrieve conversation list; for group properties, see Conversation groups overview.