Browse SDKs · React Native
SDKsReact Native

Accept a group application

OpenIM React Native SDK guide for accept a group application.

Copy

Call acceptGroupApplication() to accept a user's group application.

await OpenIMSDK.acceptGroupApplication({
  groupID: application.groupID,
  fromUserID: application.userID,
  handleMsg: 'Approved',
});

Parameters

| Parameter | Type | Required | Description | | --- | --- | --- | | groupID | string | Yes | ID of the group in the application. | | fromUserID | string | Yes | Applicant user ID, corresponding to userID in the application record. | | handleMsg | string | Yes | Handling message. Pass an empty string when no message is needed. |

When the call completes, the group application is accepted. Application status changes trigger OnGroupApplicationAccepted; see Get received group applications for complete event handling.