Browse SDKs · Flutter
SDKsFlutter

Accept a friend application

Accept a friend application with the OpenIM Flutter SDK.

Copy
await OpenIM.iMManager.friendshipManager.acceptFriendApplication(
  userID: applicantUserID,
  handleMsg: 'Accepted',
);

userID identifies the applicant, and handleMsg is an optional response note. A successful Future means that the handling request completed. The application-state change and the new friendship may arrive through separate listener callbacks and must be merged independently.