Browse SDKs · WASM
SDKsWASMEnterprise

Add conversations to groups

Add one or more conversations to selected conversation groups.

Copy

Use addConversationsToGroups() to add one or more conversations to one or more conversation groups. This operation adds only conversation-group associations. It does not create conversations or change message recipients.

Parameters

ParameterTypeRequiredDescription
conversationIDsstring[]YesOpenIM conversation IDs to add.
conversationGroupIDsstring[]YesDestination conversation group IDs.
await openimsdk.addConversationsToGroups({
  conversationIDs: [conversationID],
  conversationGroupIDs: [conversationGroupID],
});

Return result

A successful Promise means that the association request has completed. It does not mean that the group-member event has reached every client.

The related incremental event is OnConversationGroupMemberAdded. Its payload includes the group, conversation IDs, and conversation details. See Conversation group overview for complete listener and merge behavior.