Browse SDKs · React Native
Platform
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

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