Browse SDKs · Flutter
Platform
SDKsFlutterEnterprise

Add conversations to groups

Add one or more conversations to specified conversation groups using the OpenIM Flutter SDK.

Copy

Add one or more conversations to specified conversation groups. This operation creates organizational links; it does not instantiate new conversations or alter chat destinations.

Parameters

ParameterTypeRequiredDescription
conversationGroupIDsList<String>YesList of target conversation group IDs.
conversationIDsList<String>YesList of conversation IDs to add to the groups.

Code example

await OpenIM.iMManager.conversationGroupManager.addConversationsToGroups(
  conversationGroupIDs: [conversationGroupID],
  conversationIDs: [conversationID],
);

Return value

A successful Future indicates that the association request was processed by the server. The client updates the local conversation list within each group using conversationGroupID and conversationID as composite keys.

State changes after the call

Multi-device synchronization and arriving changes trigger onConversationGroupMemberAdded notifications. For complete listener integration, see Conversation groups overview.