Browse SDKs · Android
SDKsAndroid

Reject a group application

Use refuseGroupApplication to reject a user’s application to join a group.

Copy

The reject operation also takes the application's groupID, the applicant's userID, and a handling message.

OpenIMClient.getInstance().groupManager.refuseGroupApplication(new OnBase<String>() {
    @Override public void onSuccess(String data) { /* The request completed. */ }
    @Override public void onError(int code, String error) { /* code and error describe the failure. */ }
}, groupID, applicantUserID, "The group is currently full");

After the rejection succeeds, receive the notification through onGroupApplicationRejected or call the query API again to retrieve the latest application list.