Browse SDKs · React Native
SDKsReact NativeEnterprise

Get groups for a conversation

Query the conversation groups that contain a conversation.

Copy

A conversation can belong to multiple conversation groups. Call getConversationGroupByConversationID() to get the groups that contain it. To query all groups or filter by type, use Get conversation groups.

const groups = await OpenIMSDK.getConversationGroupByConversationID(conversationID);

Parameters

conversationID is an OpenIM conversation ID, not a chat group ID.

Return result

The call returns ConversationGroup[]; each item is a complete group object.