Browse SDKs · Flutter
SDKsFlutterEnterprise

Retrieve the groups containing a conversation

Retrieve complete conversation groups containing a specified conversation with the OpenIM Flutter SDK.

Copy

One conversation can belong to multiple conversation groups. Use getConversationGroupByConversationID() to retrieve the groups that currently contain a specified conversation.

final groups = await OpenIM.iMManager.conversationGroupManager
    .getConversationGroupByConversationID(
  conversationID: conversationID,
);

Result

The successful Future returns a complete List<ConversationGroupInfo>, not a list of group ID strings. This differs from the WASM getConversationGroupIDsByConversationID() method.

The query does not trigger the listener. For incremental relationship changes, see Conversation groups overview.