@poolse/react-native 2.22.1 → 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 +14 -0
- package/dist/index.cjs +9 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +9 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,20 @@ All notable changes to `@poolse/react-native` are documented here.
|
|
|
4
4
|
Format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/);
|
|
5
5
|
versions follow [semver](https://semver.org).
|
|
6
6
|
|
|
7
|
+
## [2.23.0] — 2026-10-14
|
|
8
|
+
|
|
9
|
+
### Fixed
|
|
10
|
+
|
|
11
|
+
- **Leaving a group call no longer ends it for everyone.** With two or
|
|
12
|
+
more others still connected, hanging up just walks out — the room's
|
|
13
|
+
presence tells them — and the end-the-call signal is only sent when
|
|
14
|
+
at most one other person remains. WhatsApp semantics.
|
|
15
|
+
- **The video grid clears the control dock.** The grid's bottom
|
|
16
|
+
clearance matched the old chrome; a group call's last row of tiles
|
|
17
|
+
hid behind the new dock and hang-up button.
|
|
18
|
+
- Errors only show while the call is NOT working — a stale "timed out"
|
|
19
|
+
banner no longer sits over a healthy connected call.
|
|
20
|
+
|
|
7
21
|
## [2.22.1] — 2026-10-14
|
|
8
22
|
|
|
9
23
|
### Fixed
|
package/dist/index.cjs
CHANGED
|
@@ -6142,10 +6142,14 @@ function CallScreen({
|
|
|
6142
6142
|
[wakeChrome]
|
|
6143
6143
|
);
|
|
6144
6144
|
const hangUp = react.useCallback(() => {
|
|
6145
|
+
const othersOnCall = (usingSfu ? sfu.participants : mesh.participants).filter(
|
|
6146
|
+
(p) => !p.isSelf
|
|
6147
|
+
).length;
|
|
6145
6148
|
sfu.leave();
|
|
6146
6149
|
mesh.leave();
|
|
6147
|
-
|
|
6148
|
-
|
|
6150
|
+
if (calls.phase === "active" && othersOnCall >= 2) calls.reset();
|
|
6151
|
+
else void calls.hangUp();
|
|
6152
|
+
}, [sfu, mesh, calls, usingSfu]);
|
|
6149
6153
|
const alone = usingSfu ? sfu.alone : mesh.alone;
|
|
6150
6154
|
const endedOnEmpty = react.useRef(false);
|
|
6151
6155
|
if (calls.phase !== "active") endedOnEmpty.current = false;
|
|
@@ -6186,10 +6190,11 @@ function CallScreen({
|
|
|
6186
6190
|
const statusText = duration ?? statusLine(calls, status);
|
|
6187
6191
|
const subtitle = convName && !duration && peerIds.length > 0 ? `${peerTitle} \xB7 ${statusText}` : statusText;
|
|
6188
6192
|
const showStage = connected && usingSfu && participants.length > 0;
|
|
6189
|
-
const
|
|
6193
|
+
const rawError = calls.error ?? (usingSfu ? sfu.error : mesh.error);
|
|
6194
|
+
const error = connected ? null : rawError;
|
|
6190
6195
|
const chromeInsets = {
|
|
6191
6196
|
top: insets.top + 72,
|
|
6192
|
-
bottom: insets.bottom +
|
|
6197
|
+
bottom: insets.bottom + 236
|
|
6193
6198
|
};
|
|
6194
6199
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
6195
6200
|
reactNative.Modal,
|