Browse SDKs · WASM
SDKsWASM

Accept a group application

Accept a specified user’s application to join a group.

Copy

Parameters

ParameterTypeRequiredDescription
groupIDstringYesID of the group associated with the application.
fromUserIDstringYesApplicant's user ID, corresponding to userID in the application record.
handleMsgstringYesProcessing 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.