SDKsWASMEnterprise
Add conversations to groups
Add one or more conversations to selected conversation groups.
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
| Parameter | Type | Required | Description |
|---|---|---|---|
conversationIDs | string[] | Yes | OpenIM conversation IDs to add. |
conversationGroupIDs | string[] | Yes | Destination 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.
Was this page helpful?