Browse SDKs · Flutter
SDKsFlutter

Reject a friend application

Reject a friend application with the OpenIM Flutter SDK.

Copy
await OpenIM.iMManager.friendshipManager.refuseFriendApplication(
  userID: applicantUserID,
  handleMsg: 'Not right now',
);

userID identifies the applicant, and handleMsg is an optional response note. A successful Future means that the rejection request completed. Merge application changes through the shared listener described in Retrieve received friend applications.