SDKsReact NativeEnterprise
Get conversation groups
Query the current account's conversation groups by type.
Call getConversationGroups() to get the current account's conversation groups by type.
const groups = await OpenIMSDK.getConversationGroups(
ConversationGroupType.ConversationGroupTypeNormal,
);Parameters
The parameter is a ConversationGroupType: use ConversationGroupTypeNormal for normal custom groups or ConversationGroupTypeAll to query all group types.
Return result
The call returns the matching ConversationGroup[]. See Conversation group overview for fields. Groups store conversation IDs; use Get conversations in a group when conversation details are also needed.
Was this page helpful?