Browse SDKs · Flutter
Platform
SDKsFlutter

Refuse a group application

Decline a user join application for a group using the OpenIM Flutter SDK.

Copy

A group owner or administrator calls this method to decline a pending join request:

Parameters

ParameterTypeRequiredDescription
groupIDStringYesTarget group ID.
userIDStringYesUser ID of the applicant.
handleMsgString?NoOptional remark explaining the reason for declining.

Code example

await OpenIM.iMManager.groupManager.refuseGroupApplication(
  groupID: groupID,
  userID: applicantUserID,
  handleMsg: 'Applications are closed currently',
);

Return value

A successful Future indicates that the rejection decision has been recorded on the server.

State changes after the call

Multi-device synchronization and arriving changes trigger the onGroupApplicationRejected callback. The client updates application status using groupID:userID as the key. For complete listener integration, see Group applications overview.