Skip to content

Commit

Permalink
modify
Browse files Browse the repository at this point in the history
  • Loading branch information
haoxiuwen committed Nov 1, 2024
1 parent d6ad03d commit f7e8ba2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ After receiving `friendRequestDidReceiveFromUser`, call `approveFriendRequestFro
}];
```

Once you accept or decline the contact invitation, the user that sends the invitation receives the `friendRequestDidApprove` or `friendRequestDidDecline` callback
Once you accept or decline the contact invitation, the user that sends the invitation receives the `friendRequestDidApproveByUser` or `friendRequestDidDeclineByUser` callback.

```objective-c
/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ The Agora Chat SDK uses the Contact module to add, remove and manage contacts. C
- `deleteContact`: Deletes a contact.
- `getContacts`: Retrieves a list of contacts.
- `connection.addEventHandler()`: Adds the event handler.
- `addUsersToBlockList`: Adds the specified user to the block list.
- `removeUserFromBlockList`: Removes the specified user from the block list.
- `getBlockList`: Retrieves a list of blocked users from the server.
- `addUsersToBlocklist`: Adds the specified user to the block list.
- `removeUserFromBlocklist`: Removes the specified user from the block list.
- `getBlocklist`: Retrieves a list of blocked users from the server.

## Prerequisites

Expand Down Expand Up @@ -102,7 +102,7 @@ You can add any other users to the block list, regardless of whether they are on
#### Add a user to the block list
Call `addUsersToBlockList` to add the specified user to the block list.
Call `addUsersToBlocklist` to add the specified user to the block list.
```javascript
WebIM.conn.addUsersToBlocklist({
Expand All @@ -113,7 +113,7 @@ WebIM.conn.addUsersToBlocklist({
#### Remove a user from the block list
To remove the specified user from the block list, call `removeUserFromBlockList`.
To remove the specified user from the block list, call `removeUserFromBlocklist`.
```javascript
WebIM.conn.removeUserFromBlockList({
Expand Down

0 comments on commit f7e8ba2

Please sign in to comment.