easemob-websdk 4.24.1 → 4.24.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/group/group.d.ts CHANGED
@@ -326,6 +326,7 @@ export interface GroupApi {
326
326
  * Invites users into a group.
327
327
  * Creates a group instance "inviteNeedConfirm:true", the invited users will receive "operation: 'inviteToJoin'" in the callback of onGroupEvent.
328
328
  * Creates a group instance "inviteNeedConfirm:false", the invited users will receive "operation: 'directJoined'" in the callback of onGroupEvent.
329
+ * When inviting multiple users, the request can partially succeed. Check the `result` of each item in the returned `data` array. A failed item has `result: false` and includes the failure reason in `reason`.
329
330
  *
330
331
  * ```typescript
331
332
  * connection.inviteUsersToGroup({groupId: 'groupId', users: ['user1', 'user2']})
@@ -20,6 +20,8 @@ export type MessagePriority =
20
20
  export interface ChannelMsgBody extends ChannelMsgSetParameters {
21
21
  /** The message ID. */
22
22
  id: string;
23
+ /** The ID of the last read message. */
24
+ mid?: string;
23
25
  /** Whether it's group chat. */
24
26
  group?: string;
25
27
  /** The message type. */
@@ -45,6 +47,8 @@ export interface ChannelParameters {
45
47
  export interface CreateChannelMsgParameters {
46
48
  /** The message type. */
47
49
  type: 'channel';
50
+ /** The ID of the last read message. */
51
+ mid?: string;
48
52
  /** The session type. */
49
53
  chatType: ChatType;
50
54
  /** The receipt. */
@@ -15,6 +15,8 @@ import { SendMsgResult } from '../types/indexApi';
15
15
  export type MiniCoreOptions = {
16
16
  /** Whether DNS is enabled or not. It is enabled by default. The private cloud should be turned off */
17
17
  isHttpDNS?: boolean;
18
+ /** Whether to enable attachment MD5 precheck. Defaults to `false`. DNS config takes precedence when provided. */
19
+ enableMd5Check?: boolean;
18
20
  /** The URL of the specified message server. This command is used when DNS is not enabled. Usually this API is used for specific customers and need to contact account manager to get it. */
19
21
  url?: string;
20
22
  /** The URL of the specified REST server. This command is used when DNS is not enabled. Usually this API is used for specific customers and need to contact account manager to get it. */