zooid 0.7.2 → 0.7.3

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.
@@ -24890,7 +24890,8 @@ var MatrixClient = class {
24890
24890
  if (r.ok) return;
24891
24891
  if (r.status === 403) {
24892
24892
  const body = await r.text();
24893
- if (/already (in the room|invited|a member|joined)/i.test(body)) return;
24893
+ const idempotent = /already (in the room|invited|a member|joined)/i.test(body) || /user that is joined/i.test(body);
24894
+ if (idempotent) return;
24894
24895
  throw new Error(`invite(${opts.targetUserId}) failed: 403 ${body}`);
24895
24896
  }
24896
24897
  throw new Error(`invite(${opts.targetUserId}) failed: ${r.status}`);
@@ -25575,7 +25576,7 @@ function toMatrixHtml(markdown) {
25575
25576
  var STARTUP_GRACE_MS = 5e3;
25576
25577
  var SEEN_EVENT_CAP = 5e3;
25577
25578
  var DRAIN_QUIET_MS = 300;
25578
- var DRAIN_MAX_MS = 3e3;
25579
+ var DRAIN_MAX_MS = 3e4;
25579
25580
  var delay = (ms) => new Promise((r) => setTimeout(r, ms));
25580
25581
  function inboundThreadRoot2(evt) {
25581
25582
  const r = evt.content?.["m.relates_to"];
@@ -25871,7 +25872,7 @@ function createMatrixTransport(opts) {
25871
25872
  while (drainQuietMs > 0 && Date.now() - drainStart < drainMaxMs) {
25872
25873
  await delay(drainQuietMs);
25873
25874
  const next = buffers.get(sessionId) ?? "";
25874
- if (next === drained) break;
25875
+ if (next === drained && next.length > 0) break;
25875
25876
  drained = next;
25876
25877
  }
25877
25878
  const text = buffers.get(sessionId) ?? "";
@@ -31584,4 +31585,4 @@ export {
31584
31585
  startDaemonSocketServer,
31585
31586
  buildAcpRegistry
31586
31587
  };
31587
- //# sourceMappingURL=chunk-O6E4CDTV.js.map
31588
+ //# sourceMappingURL=chunk-3IKBBKGI.js.map