@ai4b-team/fsaos-gateway-sdk 5.4.0 → 5.4.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/dist/index.js CHANGED
@@ -1478,7 +1478,8 @@ function catchUpAfterGap(reason) {
1478
1478
  void qc.invalidateQueries({ queryKey: vfsKeys.item(sub.path) });
1479
1479
  void qc.invalidateQueries({ queryKey: vfsKeys.children(sub.path) });
1480
1480
  }
1481
- log("catchUpAfterGap:", reason, "- invalidated", activePaths.size, "paths");
1481
+ void qc.invalidateQueries({ queryKey: vfsKeys.allChannelMessages() });
1482
+ log("catchUpAfterGap:", reason, "- invalidated", activePaths.size, "paths and the transcripts on screen");
1482
1483
  } catch (err) {
1483
1484
  log("catchUpAfterGap: cache invalidation skipped", err);
1484
1485
  }
@@ -2588,9 +2589,9 @@ async function loadMounts(memberSpacePath, resolveRef, options = {}) {
2588
2589
  queue: Promise.resolve()
2589
2590
  };
2590
2591
  assertCurrent(owner);
2592
+ owner.resolve = resolveRef;
2591
2593
  if (owner.loading) return owner.loading;
2592
2594
  if (owner.ready) return getMounts();
2593
- owner.resolve = resolveRef;
2594
2595
  owner.loading = (async () => {
2595
2596
  let data = null;
2596
2597
  try {
@@ -2607,7 +2608,7 @@ async function loadMounts(memberSpacePath, resolveRef, options = {}) {
2607
2608
  owner.exists = false;
2608
2609
  }
2609
2610
  const initial = options.initialAnchor ? canonical(owner, options.initialAnchor) : home;
2610
- const refs = withHome(data ? data.mounts.map(resolveRef).filter((ref) => ref !== null) : [initial]);
2611
+ const refs = withHome(data ? data.mounts.map((id) => owner.resolve(id)).filter((ref) => ref !== null) : [initial]);
2611
2612
  const anchor = data ? refs.find((ref) => ref.id === data.last_anchor) ?? refs.find((ref) => ref.kind === "space") ?? home : initial;
2612
2613
  if (data) owner.saved = signature(refs, anchor);
2613
2614
  else if (options.initialAnchor) await save(owner, refs, anchor);