SDKsReact NativeEnterprise
Add conversations to groups
Add one or more conversations to conversation groups.
Call addConversationsToGroups() to add one or more conversations to one or more conversation groups.
await OpenIMSDK.addConversationsToGroups({
conversationIDs: [conversationID],
conversationGroupIDs: [conversationGroupID],
});Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
conversationIDs | string[] | Yes | Conversation IDs to add. |
conversationGroupIDs | string[] | Yes | Target conversation-group IDs. |
Return result
After the call completes, the conversation-group membership request is complete. Membership changes are delivered through OnConversationGroupMemberAdded; the callback includes the group, conversation IDs, and conversation details. See Conversation group overview for the listener.
Was this page helpful?