@rongcloud/engine 5.7.2-beem.1 → 5.7.2-beem.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/index.d.ts CHANGED
@@ -3948,6 +3948,10 @@ interface IEngine {
3948
3948
  * 获取第一个未读消息
3949
3949
  */
3950
3950
  getFirstUnreadMessage(conversationType: ConversationType, targetId: string, channelId: string): IPromiseResult<IReceivedMessage | null>;
3951
+ /**
3952
+ * 按msgUids打量获取消息
3953
+ */
3954
+ getMessageByMsgUids(targetId: string, channelId: string, conversationType: ConversationType, msgUids: string[]): IReceivedMessage[];
3951
3955
  /**
3952
3956
  * 设置/保存指定会话消息草稿
3953
3957
  * @draft 草稿内容
@@ -5363,6 +5367,10 @@ declare class APIContext {
5363
5367
  * 获取第一个未读消息
5364
5368
  */
5365
5369
  getFirstUnreadMessage(conversationType: ConversationType, targetId: string, channelId?: string): Promise<IAsyncRes<IReceivedMessage | null>>;
5370
+ /**
5371
+ * 按msgUids批量获取消息
5372
+ */
5373
+ getMessageByMsgUids(targetId: string, channelId: string, conversationType: ConversationType, msgUids: string[]): IReceivedMessage[];
5366
5374
  /**
5367
5375
  * 设置会话免打扰
5368
5376
  * 原: setConversationStatus 已废弃
@@ -6392,6 +6400,10 @@ declare abstract class AEngine {
6392
6400
  * 获取第一个未读消息
6393
6401
  */
6394
6402
  abstract getFirstUnreadMessage(conversationType: ConversationType, targetId: string, channelId: string): IPromiseResult<IReceivedMessage | null>;
6403
+ /**
6404
+ * 按msgUids批量获取消息
6405
+ */
6406
+ abstract getMessageByMsgUids(targetId: string, channelId: string, conversationType: ConversationType, msgUids: string[]): IReceivedMessage[];
6395
6407
  /**
6396
6408
  * 设置/保存指定会话消息草稿
6397
6409
  * @draft 草稿内容