Browse SDKs · React Native
Platform
SDKsReact NativeEnterprise

Get conversation group IDs by conversation ID

Query all conversation groups that a specific conversation belongs to using the OpenIM React Native SDK.

Copy

A conversation can belong to multiple groups simultaneously. Pass a conversationID to query all conversation groups containing that conversation:

const groups = await OpenIMSDK.getConversationGroupByConversationID(conversationID);

Parameters

ParameterTypeRequiredDescription
conversationIDstringYesTarget conversation ID to query.

Return value

Resolves to an array of ConversationGroup[], where each element represents a complete group structure including conversationGroupID, name, and order. This query returns a point-in-time snapshot and does not dispatch push events. For live updates, see Conversation groups overview.