SDKsWASM
Accept a group application
Accept a specified user’s application to join a group.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
groupID | string | Yes | ID of the group associated with the application. |
fromUserID | string | Yes | Applicant's user ID, corresponding to userID in the application record. |
handleMsg | string | Yes | Processing note. Pass an empty string if no note is needed. |
await openimsdk.acceptGroupApplication({
groupID: application.groupID,
fromUserID: application.userID,
handleMsg: 'Application approved',
});When the Promise resolves, the server has completed the acceptance request. Do not construct the final member record locally based only on Promise completion. Merge the application status when OnGroupApplicationAccepted arrives, and process the corresponding member event when the user actually joins the group.
Was this page helpful?