acceptGroupApplication

public abstract void acceptGroupApplication(String groupId, String inviterId, String applicantId, IRongCoreCallback.ResultCallback<IRongCoreEnum.CoreErrorCode> callback)

The group owner or administrator approves the user to join the group.

Parameters

groupId

The ID of the group.

inviterId

The ID of the inviter. Optional. If the user is invited to join the group, pass the inviter's ID; if the user actively requests to join, this can be left empty.

applicantId

The ID of the user requesting to join the group.

callback

The callback through which the operation result is returned. The onSuccess parameter of the callback indicates: - When the group's inviteHandlePermission is set to require the invitee's consent, IRongCoreEnum.CoreErrorCode returns RC_GROUP_NEED_INVITEE_ACCEPT(25427), indicating that the invitee's consent is required. - When the group's inviteHandlePermission is set to not require the invitee's consent, IRongCoreEnum.CoreErrorCode returns SUCCESS(0). At the same time, all group members will receive the onGroupOperation callback with the operation set to Join.