SDKsReact Native
Reject a friend application
Reject a friend request with the OpenIM React Native SDK.
Call refuseFriendApplication() to reject a friend request.
await OpenIMSDK.refuseFriendApplication({
toUserID: applicantUserID,
handleMsg: '',
});Parameter description
| Parameter | Type | Required | Description |
|---|---|---|---|
toUserID | string | Yes | User ID of the applicant. |
handleMsg | string | Yes | Message attached when handling the request. Pass an empty string when there is no message. |
For request status changes, see the listener examples in Get received friend requests.
Was this page helpful?