easemob-websdk 4.2.0 → 4.2.1

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,5 +1,14 @@
1
1
  # Changes to easemob chat
2
2
 
3
+ # 4.2.1 (SEP 26, 2023)
4
+
5
+ - Adds LocalCache API
6
+ - getLocalConversations
7
+ - setLocalConversationCustomField
8
+ - getLocalConversation
9
+ - removeLocalConversation
10
+ - clearConversationUnreadCount
11
+ - onGroupEvent `joinPublicGroupDeclined` callback add the applicant userID
3
12
  # 4.2.0 (Jul 27, 2023)
4
13
 
5
14
  - Adds editing message after sent function
package/Easemob-chat.d.ts CHANGED
@@ -798,7 +798,7 @@ export declare namespace EasemobChat {
798
798
  }
799
799
 
800
800
  interface HistoryMessages {
801
- /** The position from which to start getting data for the next query. If the number of returned data entries is smaller than that specified in the request, the cursor is an empty string (''), which indicates that the current page is the last page; otherwise, the SDK returns the specific cursor position which indicates where to start getting data for the next query. */
801
+ /** The starting message ID for the next query. If the number of messages returned by the SDK is smaller than the requested number, the cursor will be `undefined`. */
802
802
  cursor?: string;
803
803
  /** The historical messages. */
804
804
  messages: MessagesType[];
@@ -1185,6 +1185,13 @@ export declare namespace EasemobChat {
1185
1185
  reactionList: ReactionListItem[];
1186
1186
  }
1187
1187
 
1188
+ interface DownloadCombineMessagesParams {
1189
+ /** The file url. */
1190
+ url: string;
1191
+ /** The file secret. */
1192
+ secret: string;
1193
+ }
1194
+
1188
1195
  /**
1189
1196
  * The error code defined by SDK.
1190
1197
  * @module Code
@@ -1234,6 +1241,8 @@ export declare namespace EasemobChat {
1234
1241
  OPERATION_UNSUPPORTED = 53,
1235
1242
  /** An operation that is not allowed. */
1236
1243
  OPERATION_NOT_ALLOWED = 54,
1244
+ /** A local database operation failed. */
1245
+ LOCAL_DB_OPERATION_FAILED = 55,
1237
1246
  /** The uploading of the file failed. */
1238
1247
  WEBIM_UPLOADFILE_ERROR = 101,
1239
1248
  /** The current user is not logged in when uploading the file. */
@@ -4448,6 +4457,11 @@ export declare namespace EasemobChat {
4448
4457
  */
4449
4458
  removeEventHandler(id: string): void;
4450
4459
 
4460
+ /** Download combined message. */
4461
+ downloadAndParseCombineMessage(
4462
+ options: DownloadCombineMessagesParams
4463
+ ): Promise<MessagesType[]>;
4464
+
4451
4465
  /**
4452
4466
  * Gets all languages what the translate service support.
4453
4467
  *
@@ -6225,7 +6239,6 @@ export declare namespace EasemobChat {
6225
6239
  */
6226
6240
  deliverOnlineOnly?: boolean;
6227
6241
  /** The list of message recipients. */
6228
- /** 消息接收方列表。 */
6229
6242
  receiverList?: string[];
6230
6243
  }
6231
6244
 
@@ -6453,7 +6466,6 @@ export declare namespace EasemobChat {
6453
6466
  */
6454
6467
  deliverOnlineOnly?: boolean;
6455
6468
  /** The list of message recipients. */
6456
- /** 消息接收方列表。 */
6457
6469
  receiverList?: string[];
6458
6470
  }
6459
6471