Browse SDKs · React Native
Platform
SDKsReact NativeEnterprise

Get conversation groups

Retrieve conversation groups by group type using the OpenIM React Native SDK.

Copy

Retrieve conversation groups created by the authenticated account filtered by type:

const groups = await OpenIMSDK.getConversationGroups(
  ConversationGroupType.ConversationGroupTypeNormal,
);

Parameters

ParameterTypeRequiredDescription
groupTypeConversationGroupTypeYesConversation group type filter.

Group type enum values:

Enum valueValueDescription
ConversationGroupTypeNormal0Standard custom conversation groups.
ConversationGroupTypeAll1All conversation group categories.

Return value

Resolves to an array of ConversationGroup[]. For field definitions, see Conversation groups overview.

Each group item contains conversationGroupID, name, order, and the list of associated conversationIDs. To retrieve group metadata populated with full conversation items in a single call, use Get conversation group info with conversations.