easemob-websdk 4.1.5 → 4.1.7-beta

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,4 +1,22 @@
1
1
  # Changes to easemob chat
2
+
3
+ # 4.1.5 (May 29, 2023)
4
+ - Adds the `pinConversation` method to pin or unpin a conversation.
5
+ - Adds the `getServerPinnedConversations` method to gets the list of pinned conversations from the server with pagination.
6
+ - Adds the `getServerConversations` method to get the sorted list of conversations from the server with pagination.
7
+ - Adds the feature of sending targeted messages in a group or chat room conversation by adding the `receiverList` parameter to the `create` method.
8
+ - Adds the `isLast` parameter to the `getHistoryMessages` method to indicate whether the returned data is that of the last page.
9
+ - Adds the `thumbnailWidth` and `thumbnailHeight` parameters to the `create` method to allow you to set the width and height of the thumbnail when sending an image.
10
+ - Adds the following errors to error codes 2 (WEBIM_CONNCTION_AUTH_ERROR) and 50 (MAX_LIMIT) and to explain the reasons for SDK login failures on the console:
11
+ - Error code 50: The number of daily active users (DAU) has exceeded the upper limit; the number of online users has exceeds the upper limit; the number of monthly active users (MAU) has exceeded the upper limit.
12
+ - Error code 2: The token is invalid.
13
+ - Adds success and failure callbacks (Promise) for the execution of the following methods:
14
+ - addContact: Adds a contact.
15
+ - deleteContact: Deletes a contact.
16
+ - acceptContactInvite: Accepts a friend request.
17
+ - declineContactInvite: Rejects a friend request.
18
+ - addUsersToBlocklist: Adds a friend to the block list.
19
+ - removeUserFromBlocklist: Removes a friend from the block list.
2
20
  ## 4.1.5 (April 13, 2023)
3
21
 
4
22
  - Adds four parameters, `from`, `msgTypes`, `startTime`, and `endTime` in `searchOptions` in the ` getHistoryMessages` method to allow you to retrieve historical messages from the server by message sender, message type, or period.