@factoringplus/pl-components-pack-v3 0.5.2-pre-14 → 0.5.2-pre-16

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.
@@ -47495,7 +47495,6 @@ const useSelectedChannelStore = defineStore("selectedChannel", {
47495
47495
  },
47496
47496
  async getSelectedChannelInfo(selectedChannel, callback) {
47497
47497
  try {
47498
- this.afterMessagesLoaded = false;
47499
47498
  this.channelId = selectedChannel.channelId;
47500
47499
  this.participant = selectedChannel.participant;
47501
47500
  await this.getChatMessagesByChannelId(10);
@@ -50294,14 +50293,18 @@ const _sfc_main$2 = {
50294
50293
  };
50295
50294
  const scrolling = ({ scrollTop }) => {
50296
50295
  const plChatFooter = document.getElementById("pl-chat-footer");
50296
+ console.log("plChatFooter", plChatFooter);
50297
50297
  const footerHeight = plChatFooter ? plChatFooter.offsetHeight : 0;
50298
50298
  if (selectedChannelStore.loadingMessages || channelsStore.isFilesList) {
50299
+ console.log(111);
50299
50300
  return;
50300
50301
  }
50301
50302
  if (scrollTop <= 20 && isEnableLoadBefore.value) {
50303
+ console.log(222);
50302
50304
  loadBefore(chatMain.value.offsetHeight);
50303
50305
  }
50304
50306
  if (scrollTop + footerHeight >= chatMain.value.offsetHeight - 450) {
50307
+ console.log(333);
50305
50308
  loadAfter(chatMain.value.offsetHeight);
50306
50309
  }
50307
50310
  };
@@ -50339,6 +50342,7 @@ const _sfc_main$2 = {
50339
50342
  }
50340
50343
  };
50341
50344
  const selectChannel = async (channel) => {
50345
+ selectedChannelStore.$reset();
50342
50346
  await selectedChannelStore.getSelectedChannelInfo(channel, () => setScroll());
50343
50347
  channelsStore.setIsChannelsList(false);
50344
50348
  channelsStore.setIsOpenChannel(true);
@@ -50364,7 +50368,7 @@ const _sfc_main$2 = {
50364
50368
  }), 128))
50365
50369
  ])) : createCommentVNode("", true),
50366
50370
  createVNode(_component_el_scrollbar, {
50367
- height: "522",
50371
+ height: "558",
50368
50372
  ref_key: "scrollbarRef",
50369
50373
  ref: scrollbarRef,
50370
50374
  onScroll: scrolling