k2-im 0.1.41 → 0.1.42

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.
@@ -5107,7 +5107,8 @@ interface ConversationHandle<TType extends ProductHandleConversationType = Produ
5107
5107
  * 按稳定消息 id 打开目标附近的连续历史窗口。
5108
5108
  *
5109
5109
  * @remarks GROUP 完整置顶预览可按消息时间定位;CHANNEL 置顶未缓存时先按 ID 取回正式历史记录,
5110
- * 以服务端游标继续双向分页。短期搜索结果只作为只读锚点;partial 置顶和过期搜索结果明确拒绝定位。
5110
+ * 以服务端游标准备前后相邻页后一次替换窗口;准备失败保留原窗口。只含控制行的页每侧最多继续四页,
5111
+ * 预算用完仍保留分页能力。短期搜索结果只作为只读锚点;partial 置顶和过期搜索结果明确拒绝定位。
5111
5112
  * @throws 没有可用锚点、远端确认缺失或目标不属于当前复合会话时,抛出稳定 `IM_SDK_MESSAGE_NOT_FOUND`
5112
5113
  * (`category: 'state'`、`retryable: false`、`details.messageId`)。这是常见产品结果而非链路异常,
5113
5114
  * 调用方应据此与真正的存储/协议失败区分反馈,不要解析错误文案。
@@ -9108,7 +9109,10 @@ interface ImThreadStoreState {
9108
9109
  interface ImThreadStoreActions {
9109
9110
  open: (ref: ConversationRef<ProductHandleConversationType>) => Promise<ProductConversationHandle | undefined>;
9110
9111
  invalidatePendingOpen: () => void;
9111
- loadLatest: () => Promise<boolean>;
9112
+ /** 默认重新读取最新页;仅在无需取代在途历史操作且已稳定处于最新窗口时允许跳过。 */
9113
+ loadLatest: (options?: {
9114
+ skipIfLatest?: boolean;
9115
+ }) => Promise<boolean>;
9112
9116
  /** 读取本次进入时冻结的首未读窗口;signal 取消时不替换当前窗口。 */
9113
9117
  loadEntryUnread: (options?: {
9114
9118
  signal?: AbortSignal;