SDKsFlutter
Accept a friend application
Accept a friend application with the OpenIM Flutter SDK.
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.
Was this page helpful?