Browse SDKs · Flutter
SDKsFlutterEnterprise

Retrieve conversation groups

Retrieve Flutter conversation groups by type.

Copy

Use getConversationGroups() to establish the current user's complete conversation-group snapshot for a specified type.

final groups = await OpenIM.iMManager.conversationGroupManager
    .getConversationGroups(
  conversationGroupType: ConversationGroupType.custom,
);

conversationGroupType defaults to ConversationGroupType.all. Pass ConversationGroupType.custom to query ordinary custom groups.

Result

The successful Future returns a sorted List<ConversationGroupInfo>. Before caching an item, check its nullable conversationGroupID, then merge by that ID.

This query does not trigger the listener. For subsequent increments, see Conversation groups overview.