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 event is OnConversationGroupMemberAdded. Its data includes the group, conversation IDs, and conversation details. See Conversation group overview for the complete listener and how to update the matching group.
Was this page helpful?