@rongcloud/imlib-next 5.8.5 → 5.8.6-alpha.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
@@ -1253,7 +1253,7 @@ declare function quitChatRoom(targetId: string): Promise<IAsyncRes<void>>;
1253
1253
  * @category 聊天室
1254
1254
  * @description count 或 order 有一个为0时,只返回成员总数,不返回成员列表信息
1255
1255
  */
1256
- declare function getChatRoomInfo(targetId: string, options: {
1256
+ declare function getChatRoomInfo(targetId: string, options?: {
1257
1257
  /**
1258
1258
  * 获取聊天室的人数,传值范围:0-20,默认为 0
1259
1259
  */
@@ -2172,7 +2172,7 @@ declare function insertMessage(conversation: IConversationOption, message: IARec
2172
2172
  * @param checkDuplicate 选择是否排重,默认 false
2173
2173
  * @returns
2174
2174
  */
2175
- declare function batchInsertMessage(messages: IInsertMessage[], checkDuplicate: boolean): Promise<IAsyncRes<any>>;
2175
+ declare function batchInsertMessage(messages: IInsertMessage[], checkDuplicate: boolean): Promise<IAsyncRes<boolean>>;
2176
2176
  /**
2177
2177
  * 获取会话所有消息数
2178
2178
  * @param conversation
@@ -2206,12 +2206,14 @@ declare function getGroupMessageDeliverList(targetId: string, messageUId: string
2206
2206
  *
2207
2207
  * @param enableCheck 是否使用融云消息重排机制 true: 开启, false: 关闭
2208
2208
  * @description
2209
+ * @returns data => true: 成功,false: 失败
2209
2210
  *
2210
2211
  */
2211
2212
  declare function setCheckDuplicateMessage(enableCheck: boolean): Promise<IAsyncRes<boolean>>;
2212
2213
 
2213
2214
  /**
2214
2215
  * 清除本地数据, 包括消息列表、会话列表、拉取消息的时间戳
2216
+ * @returns data => true: 成功,false: 失败
2215
2217
  */
2216
2218
  declare function clearLocalData(): Promise<IAsyncRes<boolean>>;
2217
2219
  /**