Browse SDKs · WASM
SDKsWASM

Reject a group application

Reject a specified user’s application to join a group.

Copy

Parameters

ParameterTypeRequiredDescription
groupIDstringYesID of the group the user applied to join.
fromUserIDstringYesApplicant's user ID, corresponding to userID in the application record.
handleMsgstringYesReason for rejection. Pass an empty string if no additional explanation is needed.
await openimsdk.refuseGroupApplication({
  groupID: application.groupID,
  fromUserID: application.userID,
  handleMsg: 'The application cannot be approved at this time',
});

When the Promise resolves, the server has completed the rejection request. When OnGroupApplicationRejected arrives, merge the updated record by groupID:userID. For the complete listener implementation, see Get received group applications.