easemob-websdk 4.4.1 → 4.5.0
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 +13 -0
- package/Easemob-chat.d.ts +31 -9
- package/Easemob-chat.js +1 -1
- package/contact/contact.d.ts +22 -4
- package/contact/contact.js +1 -1
- package/localCache/localCache.js +1 -1
- package/miniCore/miniCore.d.ts +11 -2
- package/miniCore/miniCore.js +1 -1
- package/miniProgram/Easemob-chat.js +1 -1
- package/package.json +1 -1
- package/status.d.ts +4 -0
- package/types/common.d.ts +4 -4
- package/uniApp/Easemob-chat.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# Changes to easemob chat
|
|
2
2
|
|
|
3
|
+
|
|
4
|
+
# 4.5.0 (Jan 30, 2024)
|
|
5
|
+
|
|
6
|
+
- The member absence and presence events of chat rooms and groups have added a `memberCount` field
|
|
7
|
+
- Adds the `deleteAllMessagesAndConversations` methods, which can clear the chat history of the current user, including messages and conversations
|
|
8
|
+
- Adds the getSelfIdsOnOtherPlatform method, which can get a list of login IDs of the current user on other login devices, and realize sending messages to specified devices
|
|
9
|
+
- Removed unnecessary unique fields from the Web local database
|
|
10
|
+
- Format the customExts field of the most recent custom message in the conversation list
|
|
11
|
+
- Fix the issue of pulling messages repeatedly
|
|
12
|
+
- Fix the issue of abnormal message order in the `onMessage` callback
|
|
13
|
+
- Fix the error of introducing the MiniCore plugin in vite electron
|
|
14
|
+
- Fix the issue of abnormal API request parameters for `updateOwnUserInfo` after introducing the WeChat SDK in H5
|
|
15
|
+
|
|
3
16
|
# 4.4.0 (Dec 22, 2023)
|
|
4
17
|
|
|
5
18
|
- Adds conversation Conversation Mark
|
package/Easemob-chat.d.ts
CHANGED
|
@@ -811,7 +811,7 @@ export declare namespace EasemobChat {
|
|
|
811
811
|
/** Whether it is the last page of data.
|
|
812
812
|
* - `true`: Yes;
|
|
813
813
|
* - `false`: No.
|
|
814
|
-
* If the number of data entries is smaller than the message count set in the request, `
|
|
814
|
+
* If the number of data entries is smaller than the message count set in the request, the data is of the last page and `true` is returned; otherwise, `false` is returned.
|
|
815
815
|
*/
|
|
816
816
|
isLast: boolean;
|
|
817
817
|
}
|
|
@@ -1795,7 +1795,7 @@ export declare namespace EasemobChat {
|
|
|
1795
1795
|
pageSize: number;
|
|
1796
1796
|
/** The chat room ID. */
|
|
1797
1797
|
chatRoomId: string;
|
|
1798
|
-
success?: (res: AsyncResult<
|
|
1798
|
+
success?: (res: AsyncResult<BaseMembers[]>) => void;
|
|
1799
1799
|
error?: (error: ErrorEvent) => void;
|
|
1800
1800
|
}
|
|
1801
1801
|
): Promise<AsyncResult<{ member: string }[]>>;
|
|
@@ -4535,7 +4535,7 @@ export declare namespace EasemobChat {
|
|
|
4535
4535
|
* Translates message.
|
|
4536
4536
|
*
|
|
4537
4537
|
* ```typescript
|
|
4538
|
-
* connection.translateMessage('hello',
|
|
4538
|
+
* connection.translateMessage({text: 'hello', languages: [zh-Hans]})
|
|
4539
4539
|
* ```
|
|
4540
4540
|
*/
|
|
4541
4541
|
translateMessage(params: {
|
|
@@ -5029,6 +5029,26 @@ export declare namespace EasemobChat {
|
|
|
5029
5029
|
}
|
|
5030
5030
|
): Promise<AsyncResult<ServerConversations>>;
|
|
5031
5031
|
|
|
5032
|
+
/**
|
|
5033
|
+
* Get the unique IDs of current user on the other devices. The ID is user ID + "/" + resource.
|
|
5034
|
+
*
|
|
5035
|
+
* ```typescript
|
|
5036
|
+
* connection.getSelfIdsOnOtherPlatform()
|
|
5037
|
+
* ```
|
|
5038
|
+
*/
|
|
5039
|
+
getSelfIdsOnOtherPlatform(
|
|
5040
|
+
this: Connection
|
|
5041
|
+
): Promise<AsyncResult<string[]>>;
|
|
5042
|
+
|
|
5043
|
+
/**
|
|
5044
|
+
* Deletes all conversations and all messages in them.
|
|
5045
|
+
*
|
|
5046
|
+
* ```typescript
|
|
5047
|
+
* connection.deleteAllMessagesAndConversations()
|
|
5048
|
+
* ```
|
|
5049
|
+
*/
|
|
5050
|
+
deleteAllMessagesAndConversations(this: Connection): Promise<void>;
|
|
5051
|
+
|
|
5032
5052
|
/**
|
|
5033
5053
|
* Set the DND Settings for the current login user.
|
|
5034
5054
|
*
|
|
@@ -5446,14 +5466,16 @@ export declare namespace EasemobChat {
|
|
|
5446
5466
|
id: string;
|
|
5447
5467
|
/** Message sender. */
|
|
5448
5468
|
from: string;
|
|
5449
|
-
/** Additional data for the operation event. */
|
|
5450
|
-
data?: any;
|
|
5451
5469
|
/** The modified group info. */
|
|
5452
5470
|
detail?: GroupModifyInfo;
|
|
5453
|
-
/**
|
|
5454
|
-
|
|
5455
|
-
|
|
5456
|
-
|
|
5471
|
+
/** The name of a group or chatroom. */
|
|
5472
|
+
name?: string;
|
|
5473
|
+
/** The userId of a group event. */
|
|
5474
|
+
userId?: string;
|
|
5475
|
+
/** Custom Attributes. */
|
|
5476
|
+
attributes?: Array<string> | { [key: string]: string };
|
|
5477
|
+
/** The member count. For a chat room with more than 2000 members, `memberCount` will not be returned. */
|
|
5478
|
+
memberCount?: number;
|
|
5457
5479
|
}
|
|
5458
5480
|
|
|
5459
5481
|
interface GetChatroomAttributesResult {
|