Browse SDKs · React Native
SDKsReact NativeEnterprise

Add conversations to groups

Add one or more conversations to conversation groups.

Copy

Call addConversationsToGroups() to add one or more conversations to one or more conversation groups.

await OpenIMSDK.addConversationsToGroups({
  conversationIDs: [conversationID],
  conversationGroupIDs: [conversationGroupID],
});

Parameters

ParameterTypeRequiredDescription
conversationIDsstring[]YesConversation IDs to add.
conversationGroupIDsstring[]YesTarget 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.