easemob-websdk 4.9.1-beta → 4.9.2

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,9 @@
1
1
  # Changes to easemob chat
2
2
 
3
+ # 4.9.2 (Sep 19, 2024)
4
+
5
+ - feat: `removeHistoryMessages` support chatRoom.
6
+
3
7
  # 4.9.1 (Sep 5, 2024)
4
8
 
5
9
  - feat: support uni-push plugin.
package/Easemob-chat.d.ts CHANGED
@@ -4413,14 +4413,15 @@ export declare namespace EasemobChat {
4413
4413
  removeHistoryMessages(
4414
4414
  this: Connection,
4415
4415
  options: {
4416
- /** The ID of the peer user or group. */
4416
+ /** The ID of the peer user , group ID or chatRoom ID. */
4417
4417
  targetId: string;
4418
4418
  /**
4419
- * conversation type:
4420
- * - `singleChat`: single chat;
4419
+ * The conversation type:
4420
+ * - `singleChat`: one-to-one chat;
4421
4421
  * - `groupChat`: group chat.
4422
+ * - `chatRoom`: chat room.
4422
4423
  */
4423
- chatType: 'singleChat' | 'groupChat';
4424
+ chatType: ChatType;
4424
4425
  /** The ID list of messages to be deleted. A maximum of 20 message IDs can be passed in. */
4425
4426
  messageIds?: Array<string>;
4426
4427
  /** The starting timestamp for message deletion. Messages with the timestamp before the specified one will be deleted. */