@pmate/chat-sdk 0.12.0-next.16 → 0.12.0-next.17

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.
@@ -74,8 +74,11 @@ export class ReadCountsClient {
74
74
  this.heartbeat = setInterval(() => { if (!this.closed && this.thread === threadId)
75
75
  this.renew(); }, 20_000);
76
76
  // Recover changes that occurred before a receiver/subscription became ready.
77
- if (recovered && this.revision >= 0)
77
+ if (recovered) {
78
+ // A fresh cache predates the new lease and cannot cover its delivery gap.
79
+ this.force = true;
78
80
  this.schedule(0);
81
+ }
79
82
  }).catch(error => {
80
83
  if (this.closed || generation !== this.generation)
81
84
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pmate/chat-sdk",
3
- "version": "0.12.0-next.16",
3
+ "version": "0.12.0-next.17",
4
4
  "description": "Cross-platform PMate chat input components, voice input primitives, and ASR helpers",
5
5
  "type": "module",
6
6
  "main": "./lib/index.js",