SDKsReact NativeEnterprise
Delete friend applications
Delete friend-request records with the OpenIM React Native SDK.
Call deleteFriendRequests() to delete multiple friend-request records.
Parameter description
Each item in the array contains the following fields:
| Parameter | Type | Required | Description |
|---|---|---|---|
fromUserID | string | Yes | Applicant's user ID. |
toUserID | string | Yes | Recipient's user ID. |
await OpenIMSDK.deleteFriendRequests([
{ fromUserID, toUserID },
]);Deleting a record is not the same as rejecting the request, and it does not delete an established friendship. For request-record changes, see OnFriendApplicationDeleted in Get received friend requests.
Was this page helpful?