Browse SDKs · uni-app / uni-app x
SDKsuni-app

Reject a group application

OpenIM uni-app / uni-app x SDK guide for Reject a group application.

Copy

refuseGroupApplication() uses the same application identity fields as acceptance.

Parameters

ParameterTypeRequiredDescription
groupIDstringYesTarget group ID.
fromUserIDstringYesApplicant user ID.
handleMsgstringYesRejection comment, which can be visible to the applicant.
import { refuseGroupApplication } from '@/uni_modules/unix-openim-sdk'

await refuseGroupApplication({ groupID, fromUserID, handleMsg: 'Not accepted' })

Do not place internal risk information, internal account names, or sensitive review evidence in handleMsg. Lock the application while the request is in flight so accept and reject cannot race.

Promise success means that the reject request completed, not that onGroupApplicationRejected arrived. Use the event or a new query as final state. Preserve the application on failure instead of hiding it locally.