SDKsuni-app
Reject a group application
OpenIM uni-app / uni-app x SDK guide for Reject a group application.
refuseGroupApplication() uses the same application identity fields as acceptance.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
groupID | string | Yes | Target group ID. |
fromUserID | string | Yes | Applicant user ID. |
handleMsg | string | Yes | Rejection 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.
Was this page helpful?