@bcc-code/vue-bcc-chat-ui 7.1.36 → 7.1.37

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.
@@ -4719,7 +4719,12 @@ function cc({ environment: e }) {
4719
4719
  conversationId: t.id,
4720
4720
  request: $e(t)
4721
4721
  }, S.value = !0), !ue) return !1;
4722
- let n = await nt(ue.request), r = await Promise.all(n.map((e) => F(e, _.value?.uid)).filter(Tc).sort(xc).map(tt));
4722
+ let n = await nt(ue.request);
4723
+ e?.reset && n.length === 0 && !m.value && !V && t.lastMessageAt && (se = !0, await we(), ue = {
4724
+ conversationId: t.id,
4725
+ request: $e(t)
4726
+ }, n = await nt(ue.request));
4727
+ let r = await Promise.all(n.map((e) => F(e, _.value?.uid)).filter(Tc).sort(xc).map(tt));
4723
4728
  y.value = e?.reset ? Cc(y.value.filter((e) => e.conversationId === t.id && wc(e)), r) : Cc(y.value, r), S.value = n.length === 50, U?.setMessages(t.id, y.value);
4724
4729
  let i = n[n.length - 1];
4725
4730
  return i && (await xt(i), await bt(i)), n.length > 0;