Browse SDKs · React Native
Platform
SDKsReact Native

Reject a group application

OpenIM React Native SDK guide for reject a group application.

Copy

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

ParameterTypeRequiredDescription
groupIDstringYesID of the group in the application.
fromUserIDstringYesApplicant user ID, corresponding to userID in the application record.
handleMsgstringYesRejection 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.