SDKsReact Native
Reject a group application
OpenIM React Native SDK guide for reject a group application.
Call refuseGroupApplication() to reject a user's group application.
await OpenIMSDK.refuseGroupApplication({
groupID: application.groupID,
fromUserID: application.userID,
handleMsg: 'The application cannot be accepted at this time',
});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 | Rejection reason. Pass an empty string when no reason is needed. |
When the call completes, the group application is rejected. Application status changes trigger OnGroupApplicationRejected; see Get received group applications for complete event handling.
Was this page helpful?