@poolse/react 2.19.0 → 2.23.0
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/CHANGELOG.md +19 -0
- package/dist/index.cjs +11 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +11 -5
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,25 @@ All notable changes to `@poolse/react` are documented here. Format follows
|
|
|
4
4
|
[Keep a Changelog](https://keepachangelog.com/en/1.1.0/); versions follow
|
|
5
5
|
[semver](https://semver.org).
|
|
6
6
|
|
|
7
|
+
## [2.23.0] — 2026-10-14
|
|
8
|
+
|
|
9
|
+
### Fixed
|
|
10
|
+
|
|
11
|
+
- **Answering is optimistic.** `accept()` moves local state before the
|
|
12
|
+
server's ack, so a slow socket no longer strands the user on the
|
|
13
|
+
ring screen behind a red "call:accept timed out" while the call was
|
|
14
|
+
in fact connecting. A lost ack is swallowed — the call proves itself
|
|
15
|
+
through media — while an explicit server rejection still stands the
|
|
16
|
+
call down with the error.
|
|
17
|
+
|
|
18
|
+
## [2.20.0] — 2026-10-13
|
|
19
|
+
|
|
20
|
+
### Changed
|
|
21
|
+
|
|
22
|
+
- Version bump to stay in step with `@poolse/react-ui` and
|
|
23
|
+
`@poolse/react-native`, which carry this release's message-bubble
|
|
24
|
+
redesign.
|
|
25
|
+
|
|
7
26
|
## [2.19.0] — 2026-08-25
|
|
8
27
|
|
|
9
28
|
### Fixed
|
package/dist/index.cjs
CHANGED
|
@@ -1478,14 +1478,20 @@ function useCalls(userId, opts = {}) {
|
|
|
1478
1478
|
setIncoming(null);
|
|
1479
1479
|
return;
|
|
1480
1480
|
}
|
|
1481
|
+
setActiveConversationId(target.conversationId);
|
|
1482
|
+
setActiveCallId(target.callId);
|
|
1483
|
+
setActiveMedia(target.media);
|
|
1484
|
+
setPhase("active");
|
|
1485
|
+
setIncoming(null);
|
|
1481
1486
|
try {
|
|
1482
1487
|
await calls.accept(target);
|
|
1483
|
-
setActiveConversationId(target.conversationId);
|
|
1484
|
-
setActiveCallId(target.callId);
|
|
1485
|
-
setActiveMedia(target.media);
|
|
1486
|
-
setPhase("active");
|
|
1487
|
-
setIncoming(null);
|
|
1488
1488
|
} catch (err) {
|
|
1489
|
+
const message = err instanceof Error ? err.message : String(err);
|
|
1490
|
+
if (message.includes("timed out")) return;
|
|
1491
|
+
setPhase("idle");
|
|
1492
|
+
setActiveConversationId(null);
|
|
1493
|
+
setActiveCallId(null);
|
|
1494
|
+
setActiveMedia(null);
|
|
1489
1495
|
setError(err instanceof Error ? err : new Error(String(err)));
|
|
1490
1496
|
}
|
|
1491
1497
|
},
|