SDKsWASM
Reject a group application
Reject a specified user’s application to join a group.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
groupID | string | Yes | ID of the group the user applied to join. |
fromUserID | string | Yes | Applicant's user ID, corresponding to userID in the application record. |
handleMsg | string | Yes | Reason 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.
Was this page helpful?