@bcc-code/vue-bcc-chat-ui 5.4.2 → 5.4.5

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.
@@ -78234,7 +78234,7 @@ class Cat {
78234
78234
  }
78235
78235
  Bi = new WeakMap(), ci = new WeakMap(), gl = new WeakMap(), uu = new WeakMap(), Fo = new WeakSet(), Ch = function(t, r, n) {
78236
78236
  const a = structuredClone(n) ?? {};
78237
- a.chatVersion = "5.4.2";
78237
+ a.chatVersion = "5.4.5";
78238
78238
  const i = {
78239
78239
  logUid: window.crypto.randomUUID(),
78240
78240
  correlationUid: yr(this, gl),
@@ -86911,7 +86911,7 @@ const hct = {
86911
86911
  class: "bcc-chat-message-list-offline"
86912
86912
  }, Rct = {
86913
86913
  key: 7,
86914
- class: "bcc-chat-message-list-offline"
86914
+ class: "bcc-chat-message-list-offline pointer-events-none"
86915
86915
  }, n0t = /* @__PURE__ */ Tt({
86916
86916
  __name: "BccChatMessageList",
86917
86917
  props: {
@@ -86965,10 +86965,7 @@ const hct = {
86965
86965
  m1(n.value),
86966
86966
  jn.getGroup(r.chatUid)
86967
86967
  ]);
86968
- if (a.value = P ?? void 0, i.value = P === void 0, p && !((L = a.value) != null && L.getHasJoined()) && jn.updateGetGroupMessages(p), D && jn.scrollToMessage(D), w && (jn.loadMessageId.value = w, d.value = ""), ao.getGroupMessages(T, {
86969
- per_page: 1,
86970
- affix: "prepend"
86971
- }).total === 0 ? o.value = !0 : o.value = !1, a.value) {
86968
+ if (a.value = P ?? void 0, i.value = P === void 0, p && !((L = a.value) != null && L.getHasJoined()) && jn.updateGetGroupMessages(p), D && jn.scrollToMessage(D), w && (jn.loadMessageId.value = w, d.value = ""), o.value = !1, a.value) {
86972
86969
  let $ = a.value.getMetadata().isChannel;
86973
86970
  j_(".bcc-chat-message-list-wrapper", [
86974
86971
  {
@@ -86977,7 +86974,12 @@ const hct = {
86977
86974
  "max-width": $ ? "95%" : "80%"
86978
86975
  }
86979
86976
  }
86980
- ]), $ ? l.value = [] : I1(T).then((Q) => l.value = Q);
86977
+ ]), setTimeout(() => {
86978
+ ao.getGroupMessages(T, {
86979
+ per_page: 1,
86980
+ affix: "prepend"
86981
+ }).total === 0 ? o.value = !0 : o.value = !1;
86982
+ }, 1500), $ ? l.value = [] : I1(T).then((Q) => l.value = Q);
86981
86983
  }
86982
86984
  await jn.clearGroupChatCount(r.chatUid);
86983
86985
  } else a.value && (a.value = void 0);