@poolse/react-native 2.25.1 → 2.27.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/dist/index.cjs CHANGED
@@ -1487,6 +1487,74 @@ var styles7 = reactNative.StyleSheet.create({
1487
1487
  letterSpacing: 0.3
1488
1488
  }
1489
1489
  });
1490
+ function LiveCallBanner({ call, inCall, onJoin }) {
1491
+ const theme = usePoolseTheme();
1492
+ const what = call.media === "video" ? "Video call in progress" : "Voice call in progress";
1493
+ const who = inCall > 0 ? `${inCall} on the call` : "Ringing";
1494
+ return /* @__PURE__ */ jsxRuntime.jsxs(
1495
+ reactNative.View,
1496
+ {
1497
+ style: [styles8.bar, { backgroundColor: theme.colors.success }],
1498
+ accessibilityRole: "summary",
1499
+ accessibilityLabel: `${what}, ${who}`,
1500
+ children: [
1501
+ /* @__PURE__ */ jsxRuntime.jsx(
1502
+ PoolseIcon,
1503
+ {
1504
+ name: call.media === "video" ? "video" : "phone",
1505
+ size: 16,
1506
+ color: "#FFFFFF",
1507
+ label: null
1508
+ }
1509
+ ),
1510
+ /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles8.text, children: [
1511
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles8.title, { fontFamily: theme.type.fontBody }], numberOfLines: 1, children: what }),
1512
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles8.meta, { fontFamily: theme.type.fontBody }], numberOfLines: 1, children: who })
1513
+ ] }),
1514
+ /* @__PURE__ */ jsxRuntime.jsx(
1515
+ reactNative.Pressable,
1516
+ {
1517
+ onPress: () => onJoin(call),
1518
+ accessibilityRole: "button",
1519
+ accessibilityLabel: "Join call",
1520
+ hitSlop: 8,
1521
+ style: ({ pressed }) => [styles8.join, pressed && styles8.joinPressed],
1522
+ children: /* @__PURE__ */ jsxRuntime.jsx(
1523
+ reactNative.Text,
1524
+ {
1525
+ style: [
1526
+ styles8.joinText,
1527
+ { color: theme.colors.success, fontFamily: theme.type.fontBody }
1528
+ ],
1529
+ children: "Join"
1530
+ }
1531
+ )
1532
+ }
1533
+ )
1534
+ ]
1535
+ }
1536
+ );
1537
+ }
1538
+ var styles8 = reactNative.StyleSheet.create({
1539
+ bar: {
1540
+ flexDirection: "row",
1541
+ alignItems: "center",
1542
+ gap: 10,
1543
+ paddingHorizontal: 16,
1544
+ paddingVertical: 8
1545
+ },
1546
+ text: { flex: 1, minWidth: 0 },
1547
+ title: { color: "#FFFFFF", fontSize: 14, fontWeight: "600" },
1548
+ meta: { color: "rgba(255,255,255,0.85)", fontSize: 12 },
1549
+ join: {
1550
+ backgroundColor: "#FFFFFF",
1551
+ borderRadius: 999,
1552
+ paddingHorizontal: 16,
1553
+ paddingVertical: 6
1554
+ },
1555
+ joinPressed: { opacity: 0.8 },
1556
+ joinText: { fontSize: 14, fontWeight: "700" }
1557
+ });
1490
1558
  function UploadQueueStrip() {
1491
1559
  const theme = usePoolseTheme();
1492
1560
  const upload = useSharedUpload();
@@ -1497,8 +1565,8 @@ function UploadQueueStrip() {
1497
1565
  {
1498
1566
  horizontal: true,
1499
1567
  showsHorizontalScrollIndicator: false,
1500
- contentContainerStyle: styles8.scroll,
1501
- style: [styles8.scrollStyle, { marginBottom: 8 }],
1568
+ contentContainerStyle: styles9.scroll,
1569
+ style: [styles9.scrollStyle, { marginBottom: 8 }],
1502
1570
  children: upload.queue.map((item) => {
1503
1571
  const isError = item.status === "error";
1504
1572
  const isUploading = item.status === "uploading" || item.status === "pending";
@@ -1509,7 +1577,7 @@ function UploadQueueStrip() {
1509
1577
  if (item.status === "ready" || isError) upload.remove(item.localId);
1510
1578
  else upload.cancel(item.localId);
1511
1579
  };
1512
- return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles8.tileWrap, children: [
1580
+ return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles9.tileWrap, children: [
1513
1581
  isImage && previewUri ? /* @__PURE__ */ jsxRuntime.jsx(ImageTile, { uri: previewUri, uploading: isUploading, error: isError }) : /* @__PURE__ */ jsxRuntime.jsx(
1514
1582
  FileTile,
1515
1583
  {
@@ -1524,13 +1592,13 @@ function UploadQueueStrip() {
1524
1592
  {
1525
1593
  onPress: handleClose,
1526
1594
  hitSlop: 8,
1527
- style: styles8.closeBtn,
1595
+ style: styles9.closeBtn,
1528
1596
  accessibilityLabel: isError ? "Remove failed upload" : "Cancel upload",
1529
1597
  children: /* @__PURE__ */ jsxRuntime.jsx(PoolseIcon, { name: "close", size: 11, color: "#fff" })
1530
1598
  }
1531
1599
  ) : null,
1532
- isUploading ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles8.progressOverlay, children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [styles8.spinner, { borderColor: theme.colors.onBrand }] }) }) : null,
1533
- isError ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [styles8.errorOverlay, { backgroundColor: "rgba(229,72,77,0.85)" }], children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles8.errorText, { color: "#fff" }], children: "Failed" }) }) : null
1600
+ isUploading ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles9.progressOverlay, children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [styles9.spinner, { borderColor: theme.colors.onBrand }] }) }) : null,
1601
+ isError ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [styles9.errorOverlay, { backgroundColor: "rgba(229,72,77,0.85)" }], children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles9.errorText, { color: "#fff" }], children: "Failed" }) }) : null
1534
1602
  ] }, item.localId);
1535
1603
  })
1536
1604
  }
@@ -1543,7 +1611,7 @@ function ImageTile({ uri, uploading, error }) {
1543
1611
  {
1544
1612
  source: { uri },
1545
1613
  style: [
1546
- styles8.imageTile,
1614
+ styles9.imageTile,
1547
1615
  {
1548
1616
  backgroundColor: theme.colors.surface2,
1549
1617
  borderColor: error ? theme.colors.error : "transparent",
@@ -1565,24 +1633,24 @@ function FileTile({
1565
1633
  reactNative.View,
1566
1634
  {
1567
1635
  style: [
1568
- styles8.fileTile,
1636
+ styles9.fileTile,
1569
1637
  {
1570
1638
  backgroundColor: theme.colors.surface2,
1571
1639
  borderColor: error ? theme.colors.error : uploading ? theme.colors.brand : theme.colors.border
1572
1640
  }
1573
1641
  ],
1574
1642
  children: [
1575
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [styles8.fileIconBox, { backgroundColor: theme.colors.brandSoft }], children: /* @__PURE__ */ jsxRuntime.jsx(PoolseIcon, { name: "attachment", size: 18, color: theme.colors.brand }) }),
1576
- /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles8.fileInfo, children: [
1643
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [styles9.fileIconBox, { backgroundColor: theme.colors.brandSoft }], children: /* @__PURE__ */ jsxRuntime.jsx(PoolseIcon, { name: "attachment", size: 18, color: theme.colors.brand }) }),
1644
+ /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles9.fileInfo, children: [
1577
1645
  /* @__PURE__ */ jsxRuntime.jsx(
1578
1646
  reactNative.Text,
1579
1647
  {
1580
- style: [styles8.fileName, { color: theme.colors.ink, fontFamily: theme.type.fontBody }],
1648
+ style: [styles9.fileName, { color: theme.colors.ink, fontFamily: theme.type.fontBody }],
1581
1649
  numberOfLines: 1,
1582
1650
  children: filename
1583
1651
  }
1584
1652
  ),
1585
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles8.fileSize, { color: theme.colors.ink3 }], children: formatBytes(size) })
1653
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles9.fileSize, { color: theme.colors.ink3 }], children: formatBytes(size) })
1586
1654
  ] })
1587
1655
  ]
1588
1656
  }
@@ -1596,7 +1664,7 @@ function formatBytes(n) {
1596
1664
  return `${(n / 1024 / 1024 / 1024).toFixed(1)} GB`;
1597
1665
  }
1598
1666
  var TILE = 64;
1599
- var styles8 = reactNative.StyleSheet.create({
1667
+ var styles9 = reactNative.StyleSheet.create({
1600
1668
  scrollStyle: {
1601
1669
  overflow: "visible"
1602
1670
  },
@@ -1800,7 +1868,7 @@ var MessageComposer = react.forwardRef(
1800
1868
  reactNative.View,
1801
1869
  {
1802
1870
  style: [
1803
- styles9.wrap,
1871
+ styles10.wrap,
1804
1872
  {
1805
1873
  backgroundColor: theme.colors.surface,
1806
1874
  borderTopColor: theme.colors.border,
@@ -1823,13 +1891,13 @@ var MessageComposer = react.forwardRef(
1823
1891
  }
1824
1892
  ) : null,
1825
1893
  attachments && !isEditing ? /* @__PURE__ */ jsxRuntime.jsx(UploadQueueStrip, {}) : null,
1826
- /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles9.row, children: [
1894
+ /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles10.row, children: [
1827
1895
  attachments && onAttachPress ? /* @__PURE__ */ jsxRuntime.jsx(
1828
1896
  reactNative.Pressable,
1829
1897
  {
1830
1898
  onPress: onAttachPress,
1831
1899
  hitSlop: 8,
1832
- style: styles9.iconBtn,
1900
+ style: styles10.iconBtn,
1833
1901
  accessibilityLabel: "Attach file",
1834
1902
  children: /* @__PURE__ */ jsxRuntime.jsx(PoolseIcon, { name: "attachment", size: 22, color: theme.colors.ink2 })
1835
1903
  }
@@ -1848,7 +1916,7 @@ var MessageComposer = react.forwardRef(
1848
1916
  multiline: true,
1849
1917
  editable: !disabled,
1850
1918
  style: [
1851
- styles9.input,
1919
+ styles10.input,
1852
1920
  {
1853
1921
  color: theme.colors.ink,
1854
1922
  backgroundColor: theme.colors.surface2,
@@ -1865,7 +1933,7 @@ var MessageComposer = react.forwardRef(
1865
1933
  onPress: handleSend,
1866
1934
  disabled: submitDisabled,
1867
1935
  style: [
1868
- styles9.sendBtn,
1936
+ styles10.sendBtn,
1869
1937
  {
1870
1938
  backgroundColor: submitDisabled ? theme.colors.ink3 : theme.colors.brand,
1871
1939
  opacity: submitDisabled ? 0.6 : 1
@@ -1887,7 +1955,7 @@ function EditChip({ message, onCancel }) {
1887
1955
  reactNative.View,
1888
1956
  {
1889
1957
  style: [
1890
- styles9.replyChip,
1958
+ styles10.replyChip,
1891
1959
  {
1892
1960
  backgroundColor: theme.colors.surface2,
1893
1961
  borderLeftColor: theme.colors.brand
@@ -1895,10 +1963,10 @@ function EditChip({ message, onCancel }) {
1895
1963
  ],
1896
1964
  children: [
1897
1965
  /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: { flex: 1 }, children: [
1898
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles9.replyName, { color: theme.colors.brand }], children: "Editing message" }),
1899
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles9.replyBody, { color: theme.colors.ink2 }], numberOfLines: 1, children: message.body ?? "\u2026" })
1966
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles10.replyName, { color: theme.colors.brand }], children: "Editing message" }),
1967
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles10.replyBody, { color: theme.colors.ink2 }], numberOfLines: 1, children: message.body ?? "\u2026" })
1900
1968
  ] }),
1901
- onCancel ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Pressable, { onPress: onCancel, hitSlop: 8, style: styles9.replyCancel, children: /* @__PURE__ */ jsxRuntime.jsx(PoolseIcon, { name: "close", size: 16, color: theme.colors.ink2 }) }) : null
1969
+ onCancel ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Pressable, { onPress: onCancel, hitSlop: 8, style: styles10.replyCancel, children: /* @__PURE__ */ jsxRuntime.jsx(PoolseIcon, { name: "close", size: 16, color: theme.colors.ink2 }) }) : null
1902
1970
  ]
1903
1971
  }
1904
1972
  );
@@ -1915,7 +1983,7 @@ function ReplyChip({
1915
1983
  reactNative.View,
1916
1984
  {
1917
1985
  style: [
1918
- styles9.replyChip,
1986
+ styles10.replyChip,
1919
1987
  {
1920
1988
  backgroundColor: theme.colors.surface2,
1921
1989
  borderLeftColor: theme.colors.brand
@@ -1923,18 +1991,18 @@ function ReplyChip({
1923
1991
  ],
1924
1992
  children: [
1925
1993
  /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: { flex: 1 }, children: [
1926
- /* @__PURE__ */ jsxRuntime.jsxs(reactNative.Text, { style: [styles9.replyName, { color: theme.colors.brand }], children: [
1994
+ /* @__PURE__ */ jsxRuntime.jsxs(reactNative.Text, { style: [styles10.replyName, { color: theme.colors.brand }], children: [
1927
1995
  "Replying to ",
1928
1996
  senderName
1929
1997
  ] }),
1930
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles9.replyBody, { color: theme.colors.ink2 }], numberOfLines: 1, children: message.body ?? "\u2026" })
1998
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles10.replyBody, { color: theme.colors.ink2 }], numberOfLines: 1, children: message.body ?? "\u2026" })
1931
1999
  ] }),
1932
- onCancel ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Pressable, { onPress: onCancel, hitSlop: 8, style: styles9.replyCancel, children: /* @__PURE__ */ jsxRuntime.jsx(PoolseIcon, { name: "close", size: 16, color: theme.colors.ink2 }) }) : null
2000
+ onCancel ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Pressable, { onPress: onCancel, hitSlop: 8, style: styles10.replyCancel, children: /* @__PURE__ */ jsxRuntime.jsx(PoolseIcon, { name: "close", size: 16, color: theme.colors.ink2 }) }) : null
1933
2001
  ]
1934
2002
  }
1935
2003
  );
1936
2004
  }
1937
- var styles9 = reactNative.StyleSheet.create({
2005
+ var styles10 = reactNative.StyleSheet.create({
1938
2006
  wrap: {
1939
2007
  borderTopWidth: reactNative.StyleSheet.hairlineWidth,
1940
2008
  paddingTop: 8,
@@ -2034,11 +2102,11 @@ function MentionInput({ conversationId, onSend, ...composerProps }) {
2034
2102
  animationType: "slide",
2035
2103
  onRequestClose: () => setPickerOpen(false),
2036
2104
  ...EDGE_TO_EDGE_MODAL,
2037
- children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.KeyboardAvoidingView, { style: styles10.kav, behavior: "padding", children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Pressable, { style: styles10.backdrop, onPress: () => setPickerOpen(false), children: /* @__PURE__ */ jsxRuntime.jsxs(
2105
+ children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.KeyboardAvoidingView, { style: styles11.kav, behavior: "padding", children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Pressable, { style: styles11.backdrop, onPress: () => setPickerOpen(false), children: /* @__PURE__ */ jsxRuntime.jsxs(
2038
2106
  reactNative.View,
2039
2107
  {
2040
2108
  style: [
2041
- styles10.sheet,
2109
+ styles11.sheet,
2042
2110
  {
2043
2111
  backgroundColor: theme.colors.surface,
2044
2112
  borderTopLeftRadius: theme.radii.lg,
@@ -2054,7 +2122,7 @@ function MentionInput({ conversationId, onSend, ...composerProps }) {
2054
2122
  /* @__PURE__ */ jsxRuntime.jsx(
2055
2123
  reactNative.Text,
2056
2124
  {
2057
- style: [styles10.title, { color: theme.colors.ink, fontFamily: theme.type.fontBody }],
2125
+ style: [styles11.title, { color: theme.colors.ink, fontFamily: theme.type.fontBody }],
2058
2126
  children: "Mention a member"
2059
2127
  }
2060
2128
  ),
@@ -2086,12 +2154,12 @@ function MentionInput({ conversationId, onSend, ...composerProps }) {
2086
2154
  }
2087
2155
  function MentionRow({ member, onPress }) {
2088
2156
  const theme = usePoolseTheme();
2089
- return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.Pressable, { onPress, style: styles10.row, children: [
2157
+ return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.Pressable, { onPress, style: styles11.row, children: [
2090
2158
  /* @__PURE__ */ jsxRuntime.jsx(Avatar, { src: null, name: member.external_id, seed: member.external_id, size: "sm" }),
2091
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles10.rowText, { color: theme.colors.ink, fontFamily: theme.type.fontBody }], children: member.external_id })
2159
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles11.rowText, { color: theme.colors.ink, fontFamily: theme.type.fontBody }], children: member.external_id })
2092
2160
  ] });
2093
2161
  }
2094
- var styles10 = reactNative.StyleSheet.create({
2162
+ var styles11 = reactNative.StyleSheet.create({
2095
2163
  kav: {
2096
2164
  flex: 1
2097
2165
  },
@@ -2174,12 +2242,12 @@ function MessageList({
2174
2242
  [renderItem, data.length]
2175
2243
  );
2176
2244
  if (loading && messages.length === 0) {
2177
- return /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [styles11.placeholder, { backgroundColor: theme.colors.paper }], children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.ActivityIndicator, { color: theme.colors.brand }) });
2245
+ return /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [styles12.placeholder, { backgroundColor: theme.colors.paper }], children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.ActivityIndicator, { color: theme.colors.brand }) });
2178
2246
  }
2179
2247
  if (messages.length === 0) {
2180
- return /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [styles11.placeholder, { backgroundColor: theme.colors.paper }], children: typeof emptyState === "string" ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: { color: theme.colors.ink3, fontFamily: theme.type.fontBody }, children: emptyState }) : emptyState ?? null });
2248
+ return /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [styles12.placeholder, { backgroundColor: theme.colors.paper }], children: typeof emptyState === "string" ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: { color: theme.colors.ink3, fontFamily: theme.type.fontBody }, children: emptyState }) : emptyState ?? null });
2181
2249
  }
2182
- return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles11.root, children: [
2250
+ return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles12.root, children: [
2183
2251
  /* @__PURE__ */ jsxRuntime.jsx(
2184
2252
  reactNative.FlatList,
2185
2253
  {
@@ -2206,7 +2274,7 @@ function MessageList({
2206
2274
  {
2207
2275
  onPress: scrollToBottom,
2208
2276
  style: [
2209
- styles11.jumpButton,
2277
+ styles12.jumpButton,
2210
2278
  {
2211
2279
  backgroundColor: theme.colors.brand
2212
2280
  },
@@ -2215,7 +2283,7 @@ function MessageList({
2215
2283
  accessibilityLabel: `${newCount} new ${newCount === 1 ? "message" : "messages"}, jump to latest`,
2216
2284
  children: [
2217
2285
  /* @__PURE__ */ jsxRuntime.jsx(PoolseIcon, { name: "chevron-down", size: 14, color: theme.colors.onBrand }),
2218
- /* @__PURE__ */ jsxRuntime.jsxs(reactNative.Text, { style: [styles11.jumpText, { color: theme.colors.onBrand }], children: [
2286
+ /* @__PURE__ */ jsxRuntime.jsxs(reactNative.Text, { style: [styles12.jumpText, { color: theme.colors.onBrand }], children: [
2219
2287
  newCount,
2220
2288
  " new ",
2221
2289
  newCount === 1 ? "message" : "messages"
@@ -2225,7 +2293,7 @@ function MessageList({
2225
2293
  ) : null
2226
2294
  ] });
2227
2295
  }
2228
- var styles11 = reactNative.StyleSheet.create({
2296
+ var styles12 = reactNative.StyleSheet.create({
2229
2297
  root: {
2230
2298
  flex: 1
2231
2299
  },
@@ -2251,64 +2319,90 @@ var styles11 = reactNative.StyleSheet.create({
2251
2319
  fontWeight: "600"
2252
2320
  }
2253
2321
  });
2254
- function CallLogRow({ msg, meId }) {
2322
+ function CallLogRow({ msg, meId, onCallBack }) {
2255
2323
  const theme = usePoolseTheme();
2256
2324
  const display = react$1.callLogDisplayFor(msg, meId);
2257
2325
  if (!display) return null;
2258
2326
  const accent = display.missed ? theme.colors.error : theme.colors.ink3;
2259
2327
  const time = formatTime(msg.inserted_at);
2260
2328
  const label = [display.title, display.detail, time].filter(Boolean).join(", ");
2261
- const metaStyle = [styles12.meta, { color: theme.colors.ink3, fontFamily: theme.type.fontBody }];
2262
- return /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles12.wrap, accessible: true, accessibilityLabel: label, children: /* @__PURE__ */ jsxRuntime.jsxs(
2263
- reactNative.View,
2264
- {
2265
- style: [
2266
- styles12.chip,
2267
- {
2268
- backgroundColor: theme.colors.surface2,
2269
- borderColor: theme.colors.border
2270
- }
2271
- ],
2272
- children: [
2273
- /* @__PURE__ */ jsxRuntime.jsx(PoolseIcon, { name: display.media === "video" ? "video" : "phone", size: 13, color: accent }),
2274
- /* @__PURE__ */ jsxRuntime.jsx(
2329
+ const metaStyle = [styles13.meta, { color: theme.colors.ink3, fontFamily: theme.type.fontBody }];
2330
+ return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles13.wrap, accessible: true, accessibilityLabel: label, children: [
2331
+ /* @__PURE__ */ jsxRuntime.jsxs(
2332
+ reactNative.View,
2333
+ {
2334
+ style: [
2335
+ styles13.chip,
2336
+ {
2337
+ backgroundColor: theme.colors.surface2,
2338
+ borderColor: theme.colors.border
2339
+ }
2340
+ ],
2341
+ children: [
2342
+ /* @__PURE__ */ jsxRuntime.jsx(PoolseIcon, { name: display.media === "video" ? "video" : "phone", size: 13, color: accent }),
2343
+ /* @__PURE__ */ jsxRuntime.jsx(
2344
+ reactNative.Text,
2345
+ {
2346
+ style: [
2347
+ styles13.title,
2348
+ {
2349
+ color: display.missed ? theme.colors.error : theme.colors.ink2,
2350
+ fontFamily: theme.type.fontBody
2351
+ }
2352
+ ],
2353
+ numberOfLines: 1,
2354
+ children: display.title
2355
+ }
2356
+ ),
2357
+ display.detail ? /* @__PURE__ */ jsxRuntime.jsxs(reactNative.Text, { style: metaStyle, children: [
2358
+ "\xB7 ",
2359
+ display.detail
2360
+ ] }) : null,
2361
+ time ? /* @__PURE__ */ jsxRuntime.jsxs(reactNative.Text, { style: metaStyle, children: [
2362
+ "\xB7 ",
2363
+ time
2364
+ ] }) : null
2365
+ ]
2366
+ }
2367
+ ),
2368
+ display.callBack && onCallBack ? /* @__PURE__ */ jsxRuntime.jsx(
2369
+ reactNative.Pressable,
2370
+ {
2371
+ onPress: () => onCallBack(display.media),
2372
+ accessibilityRole: "button",
2373
+ accessibilityLabel: display.media === "video" ? "Video call back" : "Call back",
2374
+ hitSlop: 8,
2375
+ style: ({ pressed }) => [styles13.callBack, pressed && styles13.callBackPressed],
2376
+ children: /* @__PURE__ */ jsxRuntime.jsx(
2275
2377
  reactNative.Text,
2276
2378
  {
2277
2379
  style: [
2278
- styles12.title,
2279
- {
2280
- color: display.missed ? theme.colors.error : theme.colors.ink2,
2281
- fontFamily: theme.type.fontBody
2282
- }
2380
+ styles13.callBackText,
2381
+ { color: theme.colors.brand, fontFamily: theme.type.fontBody }
2283
2382
  ],
2284
- numberOfLines: 1,
2285
- children: display.title
2383
+ children: "Call back"
2286
2384
  }
2287
- ),
2288
- display.detail ? /* @__PURE__ */ jsxRuntime.jsxs(reactNative.Text, { style: metaStyle, children: [
2289
- "\xB7 ",
2290
- display.detail
2291
- ] }) : null,
2292
- time ? /* @__PURE__ */ jsxRuntime.jsxs(reactNative.Text, { style: metaStyle, children: [
2293
- "\xB7 ",
2294
- time
2295
- ] }) : null
2296
- ]
2297
- }
2298
- ) });
2385
+ )
2386
+ }
2387
+ ) : null
2388
+ ] });
2299
2389
  }
2300
2390
  function formatTime(iso) {
2301
2391
  const d = new Date(iso);
2302
2392
  if (Number.isNaN(d.getTime())) return "";
2303
2393
  return d.toLocaleTimeString([], { hour: "numeric", minute: "2-digit" });
2304
2394
  }
2305
- var styles12 = reactNative.StyleSheet.create({
2395
+ var styles13 = reactNative.StyleSheet.create({
2306
2396
  wrap: {
2307
2397
  alignItems: "center",
2308
2398
  alignSelf: "stretch",
2309
2399
  marginVertical: 6,
2310
- paddingHorizontal: 16
2400
+ paddingHorizontal: 16,
2401
+ gap: 4
2311
2402
  },
2403
+ callBack: { paddingHorizontal: 10, paddingVertical: 2 },
2404
+ callBackPressed: { opacity: 0.6 },
2405
+ callBackText: { fontSize: 12, fontWeight: "600" },
2312
2406
  chip: {
2313
2407
  flexDirection: "row",
2314
2408
  alignItems: "center",
@@ -2366,11 +2460,11 @@ function MessageActions({
2366
2460
  animationType: "fade",
2367
2461
  onRequestClose: onClose,
2368
2462
  ...EDGE_TO_EDGE_MODAL,
2369
- children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Pressable, { style: styles13.backdrop, onPress: onClose, children: /* @__PURE__ */ jsxRuntime.jsxs(
2463
+ children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Pressable, { style: styles14.backdrop, onPress: onClose, children: /* @__PURE__ */ jsxRuntime.jsxs(
2370
2464
  reactNative.View,
2371
2465
  {
2372
2466
  style: [
2373
- styles13.sheet,
2467
+ styles14.sheet,
2374
2468
  {
2375
2469
  backgroundColor: theme.colors.surface,
2376
2470
  borderTopLeftRadius: theme.radii.lg,
@@ -2383,21 +2477,21 @@ function MessageActions({
2383
2477
  theme.shadows.lg
2384
2478
  ],
2385
2479
  children: [
2386
- showEmojiRow ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [styles13.emojiRow, { borderBottomColor: theme.colors.border }], children: emojis.map((emoji) => /* @__PURE__ */ jsxRuntime.jsx(
2480
+ showEmojiRow ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [styles14.emojiRow, { borderBottomColor: theme.colors.border }], children: emojis.map((emoji) => /* @__PURE__ */ jsxRuntime.jsx(
2387
2481
  reactNative.Pressable,
2388
2482
  {
2389
2483
  onPress: () => {
2390
2484
  onPickReaction(emoji);
2391
2485
  onClose();
2392
2486
  },
2393
- style: styles13.emojiBtn,
2487
+ style: styles14.emojiBtn,
2394
2488
  hitSlop: 6,
2395
2489
  accessibilityLabel: `React with ${emoji}`,
2396
- children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: styles13.emoji, children: emoji })
2490
+ children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: styles14.emoji, children: emoji })
2397
2491
  },
2398
2492
  emoji
2399
2493
  )) }) : null,
2400
- items.map((item) => /* @__PURE__ */ jsxRuntime.jsxs(reactNative.Pressable, { onPress: item.onPress, style: styles13.item, children: [
2494
+ items.map((item) => /* @__PURE__ */ jsxRuntime.jsxs(reactNative.Pressable, { onPress: item.onPress, style: styles14.item, children: [
2401
2495
  /* @__PURE__ */ jsxRuntime.jsx(
2402
2496
  PoolseIcon,
2403
2497
  {
@@ -2410,7 +2504,7 @@ function MessageActions({
2410
2504
  reactNative.Text,
2411
2505
  {
2412
2506
  style: [
2413
- styles13.itemText,
2507
+ styles14.itemText,
2414
2508
  {
2415
2509
  color: item.danger ? theme.colors.error : theme.colors.ink,
2416
2510
  fontFamily: theme.type.fontBody
@@ -2426,7 +2520,7 @@ function MessageActions({
2426
2520
  }
2427
2521
  );
2428
2522
  }
2429
- var styles13 = reactNative.StyleSheet.create({
2523
+ var styles14 = reactNative.StyleSheet.create({
2430
2524
  backdrop: {
2431
2525
  flex: 1,
2432
2526
  backgroundColor: "rgba(0,0,0,0.35)",
@@ -2496,7 +2590,7 @@ function AttachmentPreview({
2496
2590
  reactNative.View,
2497
2591
  {
2498
2592
  style: [
2499
- styles14.imagePlaceholder,
2593
+ styles15.imagePlaceholder,
2500
2594
  {
2501
2595
  width: maxWidth,
2502
2596
  height: 200,
@@ -2516,7 +2610,7 @@ function AttachmentPreview({
2516
2610
  onPress,
2517
2611
  disabled: !onPress,
2518
2612
  style: [
2519
- styles14.fileCard,
2613
+ styles15.fileCard,
2520
2614
  {
2521
2615
  backgroundColor: onBrand ? "rgba(255,255,255,0.18)" : theme.colors.surface2,
2522
2616
  borderColor: onBrand ? "transparent" : theme.colors.border,
@@ -2529,12 +2623,12 @@ function AttachmentPreview({
2529
2623
  /* @__PURE__ */ jsxRuntime.jsx(
2530
2624
  reactNative.Text,
2531
2625
  {
2532
- style: [styles14.fileName, { color: ink, fontFamily: theme.type.fontBody }],
2626
+ style: [styles15.fileName, { color: ink, fontFamily: theme.type.fontBody }],
2533
2627
  numberOfLines: 1,
2534
2628
  children: attachment.original_filename ?? "file"
2535
2629
  }
2536
2630
  ),
2537
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles14.fileSize, { color: inkSoft, opacity: onBrand ? 0.8 : 1 }], children: formatBytes2(attachment.byte_size) })
2631
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles15.fileSize, { color: inkSoft, opacity: onBrand ? 0.8 : 1 }], children: formatBytes2(attachment.byte_size) })
2538
2632
  ] })
2539
2633
  ]
2540
2634
  }
@@ -2546,7 +2640,7 @@ function formatBytes2(n) {
2546
2640
  if (n < 1024 * 1024 * 1024) return `${(n / 1024 / 1024).toFixed(1)} MB`;
2547
2641
  return `${(n / 1024 / 1024 / 1024).toFixed(1)} GB`;
2548
2642
  }
2549
- var styles14 = reactNative.StyleSheet.create({
2643
+ var styles15 = reactNative.StyleSheet.create({
2550
2644
  imagePlaceholder: {},
2551
2645
  fileCard: {
2552
2646
  flexDirection: "row",
@@ -2582,7 +2676,7 @@ function ImageMosaic({
2582
2676
  reactNative.View,
2583
2677
  {
2584
2678
  style: [
2585
- styles15.root,
2679
+ styles16.root,
2586
2680
  {
2587
2681
  borderTopLeftRadius: r,
2588
2682
  borderTopRightRadius: r,
@@ -2603,18 +2697,18 @@ function ImageMosaic({
2603
2697
  {
2604
2698
  onLongPress,
2605
2699
  attachment: visible[0],
2606
- style: styles15.tileFull,
2700
+ style: styles16.tileFull,
2607
2701
  onPress: () => setViewerIndex(0),
2608
2702
  overlay: null
2609
2703
  }
2610
2704
  ) : null,
2611
- n === 2 ? /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles15.rowEven, children: [
2705
+ n === 2 ? /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles16.rowEven, children: [
2612
2706
  /* @__PURE__ */ jsxRuntime.jsx(
2613
2707
  Tile,
2614
2708
  {
2615
2709
  onLongPress,
2616
2710
  attachment: visible[0],
2617
- style: styles15.tileHalfSquare,
2711
+ style: styles16.tileHalfSquare,
2618
2712
  onPress: () => setViewerIndex(0),
2619
2713
  overlay: null
2620
2714
  }
@@ -2624,7 +2718,7 @@ function ImageMosaic({
2624
2718
  {
2625
2719
  onLongPress,
2626
2720
  attachment: visible[1],
2627
- style: styles15.tileHalfSquare,
2721
+ style: styles16.tileHalfSquare,
2628
2722
  onPress: () => setViewerIndex(1),
2629
2723
  overlay: null
2630
2724
  }
@@ -2636,18 +2730,18 @@ function ImageMosaic({
2636
2730
  {
2637
2731
  onLongPress,
2638
2732
  attachment: visible[0],
2639
- style: styles15.tileHero,
2733
+ style: styles16.tileHero,
2640
2734
  onPress: () => setViewerIndex(0),
2641
2735
  overlay: null
2642
2736
  }
2643
2737
  ),
2644
- /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [styles15.rowEven, { marginTop: 2 }], children: [
2738
+ /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [styles16.rowEven, { marginTop: 2 }], children: [
2645
2739
  /* @__PURE__ */ jsxRuntime.jsx(
2646
2740
  Tile,
2647
2741
  {
2648
2742
  onLongPress,
2649
2743
  attachment: visible[1],
2650
- style: styles15.tileHalfSquare,
2744
+ style: styles16.tileHalfSquare,
2651
2745
  onPress: () => setViewerIndex(1),
2652
2746
  overlay: null
2653
2747
  }
@@ -2657,7 +2751,7 @@ function ImageMosaic({
2657
2751
  {
2658
2752
  onLongPress,
2659
2753
  attachment: visible[2],
2660
- style: styles15.tileHalfSquare,
2754
+ style: styles16.tileHalfSquare,
2661
2755
  onPress: () => setViewerIndex(2),
2662
2756
  overlay: null
2663
2757
  }
@@ -2665,13 +2759,13 @@ function ImageMosaic({
2665
2759
  ] })
2666
2760
  ] }) : null,
2667
2761
  n === 4 ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
2668
- /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles15.rowEven, children: [
2762
+ /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles16.rowEven, children: [
2669
2763
  /* @__PURE__ */ jsxRuntime.jsx(
2670
2764
  Tile,
2671
2765
  {
2672
2766
  onLongPress,
2673
2767
  attachment: visible[0],
2674
- style: styles15.tileHalfSquare,
2768
+ style: styles16.tileHalfSquare,
2675
2769
  onPress: () => setViewerIndex(0),
2676
2770
  overlay: null
2677
2771
  }
@@ -2681,19 +2775,19 @@ function ImageMosaic({
2681
2775
  {
2682
2776
  onLongPress,
2683
2777
  attachment: visible[1],
2684
- style: styles15.tileHalfSquare,
2778
+ style: styles16.tileHalfSquare,
2685
2779
  onPress: () => setViewerIndex(1),
2686
2780
  overlay: null
2687
2781
  }
2688
2782
  )
2689
2783
  ] }),
2690
- /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [styles15.rowEven, { marginTop: 2 }], children: [
2784
+ /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [styles16.rowEven, { marginTop: 2 }], children: [
2691
2785
  /* @__PURE__ */ jsxRuntime.jsx(
2692
2786
  Tile,
2693
2787
  {
2694
2788
  onLongPress,
2695
2789
  attachment: visible[2],
2696
- style: styles15.tileHalfSquare,
2790
+ style: styles16.tileHalfSquare,
2697
2791
  onPress: () => setViewerIndex(2),
2698
2792
  overlay: null
2699
2793
  }
@@ -2703,7 +2797,7 @@ function ImageMosaic({
2703
2797
  {
2704
2798
  onLongPress,
2705
2799
  attachment: visible[3],
2706
- style: styles15.tileHalfSquare,
2800
+ style: styles16.tileHalfSquare,
2707
2801
  onPress: () => setViewerIndex(3),
2708
2802
  overlay: overflow > 0 ? `+${overflow}` : null
2709
2803
  }
@@ -2741,18 +2835,18 @@ function Tile({
2741
2835
  }) {
2742
2836
  const theme = usePoolseTheme();
2743
2837
  const { url } = react$1.useAttachmentUrl(attachment.id);
2744
- return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.Pressable, { onPress, onLongPress, style: [styles15.tileBase, style], children: [
2838
+ return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.Pressable, { onPress, onLongPress, style: [styles16.tileBase, style], children: [
2745
2839
  url ? /* @__PURE__ */ jsxRuntime.jsx(
2746
2840
  reactNative.Image,
2747
2841
  {
2748
2842
  source: { uri: url },
2749
- style: [styles15.tileImage, { backgroundColor: theme.colors.surface2 }],
2843
+ style: [styles16.tileImage, { backgroundColor: theme.colors.surface2 }],
2750
2844
  resizeMode: "cover",
2751
2845
  accessible: true,
2752
2846
  accessibilityLabel: attachment.original_filename ?? "image"
2753
2847
  }
2754
- ) : /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [styles15.tileImage, { backgroundColor: theme.colors.surface2 }] }),
2755
- overlay ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles15.overflow, children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: styles15.overflowText, children: overlay }) }) : null
2848
+ ) : /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [styles16.tileImage, { backgroundColor: theme.colors.surface2 }] }),
2849
+ overlay ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles16.overflow, children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: styles16.overflowText, children: overlay }) }) : null
2756
2850
  ] });
2757
2851
  }
2758
2852
  function FullScreenViewer({
@@ -2762,7 +2856,7 @@ function FullScreenViewer({
2762
2856
  const { url } = react$1.useAttachmentUrl(attachment.id);
2763
2857
  const { width, height } = reactNative.useWindowDimensions();
2764
2858
  const insets = useSafeInsets();
2765
- return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.Pressable, { style: styles15.viewer, onPress: onClose, children: [
2859
+ return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.Pressable, { style: styles16.viewer, onPress: onClose, children: [
2766
2860
  url ? /* @__PURE__ */ jsxRuntime.jsx(
2767
2861
  reactNative.Image,
2768
2862
  {
@@ -2778,14 +2872,14 @@ function FullScreenViewer({
2778
2872
  {
2779
2873
  onPress: onClose,
2780
2874
  hitSlop: 12,
2781
- style: [styles15.closeBtn, { top: insets.top + 12, right: insets.right + 16 }],
2875
+ style: [styles16.closeBtn, { top: insets.top + 12, right: insets.right + 16 }],
2782
2876
  accessibilityLabel: "Close viewer",
2783
2877
  children: /* @__PURE__ */ jsxRuntime.jsx(PoolseIcon, { name: "close", size: 20, color: "#ffffff" })
2784
2878
  }
2785
2879
  )
2786
2880
  ] });
2787
2881
  }
2788
- var styles15 = reactNative.StyleSheet.create({
2882
+ var styles16 = reactNative.StyleSheet.create({
2789
2883
  root: {
2790
2884
  width: "100%",
2791
2885
  overflow: "hidden",
@@ -2974,22 +3068,22 @@ function MessageBubble({
2974
3068
  reactNative.View,
2975
3069
  {
2976
3070
  style: [
2977
- styles16.metaRow,
2978
- variant === "inline" && styles16.metaInline,
2979
- variant === "wrapped" && styles16.metaWrapped,
2980
- variant === "overlay" && styles16.metaOverlay,
2981
- variant === "block" && styles16.metaBlock,
3071
+ styles17.metaRow,
3072
+ variant === "inline" && styles17.metaInline,
3073
+ variant === "wrapped" && styles17.metaWrapped,
3074
+ variant === "overlay" && styles17.metaOverlay,
3075
+ variant === "block" && styles17.metaBlock,
2982
3076
  // File-only bubble: the meta row follows the cards directly —
2983
3077
  // give it air so the time doesn't sit glued to the card.
2984
- variant === "block" && hasFiles && !hasBody && styles16.metaBlockAfterFiles,
2985
- variant === "jumbo" && styles16.metaJumbo
3078
+ variant === "block" && hasFiles && !hasBody && styles17.metaBlockAfterFiles,
3079
+ variant === "jumbo" && styles17.metaJumbo
2986
3080
  ],
2987
3081
  onLayout: variant === "inline" || variant === "wrapped" ? (e) => setMetaWidth(e.nativeEvent.layout.width) : void 0,
2988
3082
  pointerEvents: "none",
2989
3083
  children: [
2990
- isEdited ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles16.editedTag, { color, opacity: 0.8 }], children: "edited" }) : null,
2991
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles16.meta, { color, opacity: variant === "overlay" ? 1 : 0.75 }], children: time }),
2992
- isSelf && readState ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles16.readTick, children: /* @__PURE__ */ jsxRuntime.jsx(
3084
+ isEdited ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles17.editedTag, { color, opacity: 0.8 }], children: "edited" }) : null,
3085
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles17.meta, { color, opacity: variant === "overlay" ? 1 : 0.75 }], children: time }),
3086
+ isSelf && readState ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles17.readTick, children: /* @__PURE__ */ jsxRuntime.jsx(
2993
3087
  PoolseIcon,
2994
3088
  {
2995
3089
  name: readState === "read" ? "check-double" : "check",
@@ -3001,7 +3095,7 @@ function MessageBubble({
3001
3095
  }
3002
3096
  );
3003
3097
  };
3004
- return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [styles16.wrap, { alignSelf: isSelf ? "flex-end" : "flex-start", maxWidth: bubbleMaxWidth }], children: [
3098
+ return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [styles17.wrap, { alignSelf: isSelf ? "flex-end" : "flex-start", maxWidth: bubbleMaxWidth }], children: [
3005
3099
  /* @__PURE__ */ jsxRuntime.jsxs(
3006
3100
  reactNative.View,
3007
3101
  {
@@ -3021,7 +3115,7 @@ function MessageBubble({
3021
3115
  showSenderName && !isSelf && jumboCount === 0 && (groupPosition === "first" || groupPosition === "standalone") ? /* @__PURE__ */ jsxRuntime.jsx(
3022
3116
  reactNative.Text,
3023
3117
  {
3024
- style: [styles16.senderName, { color: senderTint, fontFamily: theme.type.fontBody }],
3118
+ style: [styles17.senderName, { color: senderTint, fontFamily: theme.type.fontBody }],
3025
3119
  children: senderLabel
3026
3120
  }
3027
3121
  ) : null,
@@ -3038,7 +3132,7 @@ function MessageBubble({
3038
3132
  // 3px of bubble color framing the picture; the mosaic clips
3039
3133
  // itself 3px tighter than the bubble so the curves stay
3040
3134
  // concentric.
3041
- /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles16.mediaFrame, children: [
3135
+ /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles17.mediaFrame, children: [
3042
3136
  /* @__PURE__ */ jsxRuntime.jsx(
3043
3137
  ImageMosaic,
3044
3138
  {
@@ -3052,7 +3146,7 @@ function MessageBubble({
3052
3146
  metaOverlay ? metaRow("overlay") : null
3053
3147
  ] })
3054
3148
  ) : null,
3055
- hasFiles ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles16.filesBlock, children: files.map((att) => /* @__PURE__ */ jsxRuntime.jsx(
3149
+ hasFiles ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles17.filesBlock, children: files.map((att) => /* @__PURE__ */ jsxRuntime.jsx(
3056
3150
  AttachmentPreview,
3057
3151
  {
3058
3152
  attachment: att,
@@ -3061,7 +3155,7 @@ function MessageBubble({
3061
3155
  },
3062
3156
  att.id
3063
3157
  )) }) : null,
3064
- isDeleted ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [styles16.textBlock, sectionAbove && styles16.textBlockAfter], children: /* @__PURE__ */ jsxRuntime.jsx(
3158
+ isDeleted ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [styles17.textBlock, sectionAbove && styles17.textBlockAfter], children: /* @__PURE__ */ jsxRuntime.jsx(
3065
3159
  reactNative.Text,
3066
3160
  {
3067
3161
  style: {
@@ -3075,7 +3169,7 @@ function MessageBubble({
3075
3169
  children: "Message deleted"
3076
3170
  }
3077
3171
  ) }) : null,
3078
- hasBody && jumboCount > 0 ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles16.jumboBlock, children: /* @__PURE__ */ jsxRuntime.jsx(
3172
+ hasBody && jumboCount > 0 ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles17.jumboBlock, children: /* @__PURE__ */ jsxRuntime.jsx(
3079
3173
  reactNative.Text,
3080
3174
  {
3081
3175
  style: { fontSize: emojiFontSize(jumboCount), lineHeight: emojiFontSize(jumboCount) + 8 },
@@ -3085,7 +3179,7 @@ function MessageBubble({
3085
3179
  hasBody && jumboCount === 0 ? /* @__PURE__ */ jsxRuntime.jsxs(
3086
3180
  reactNative.View,
3087
3181
  {
3088
- style: [styles16.textBlock, sectionAbove && styles16.textBlockAfter],
3182
+ style: [styles17.textBlock, sectionAbove && styles17.textBlockAfter],
3089
3183
  onLayout: inlineMeta ? (e) => setTextBoxWidth(e.nativeEvent.layout.width - 24) : void 0,
3090
3184
  children: [
3091
3185
  markdown && !inlineMeta ? renderMarkdown(truncated, {
@@ -3119,7 +3213,7 @@ function MessageBubble({
3119
3213
  reactNative.Text,
3120
3214
  {
3121
3215
  style: [
3122
- styles16.readMore,
3216
+ styles17.readMore,
3123
3217
  { color: isSelf ? theme.colors.onBrand : theme.colors.brand }
3124
3218
  ],
3125
3219
  children: expanded ? "Show less" : "Read more"
@@ -3130,7 +3224,7 @@ function MessageBubble({
3130
3224
  }
3131
3225
  ) : null,
3132
3226
  !inlineMeta && !metaOverlay && jumboCount === 0 ? metaRow("block") : null,
3133
- actionsTrigger ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles16.actionsSlot, children: actionsTrigger }) : null
3227
+ actionsTrigger ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles17.actionsSlot, children: actionsTrigger }) : null
3134
3228
  ]
3135
3229
  }
3136
3230
  ),
@@ -3155,15 +3249,15 @@ function QuotedCard({
3155
3249
  onPress,
3156
3250
  disabled: !onPress,
3157
3251
  style: [
3158
- styles16.quoted,
3252
+ styles17.quoted,
3159
3253
  {
3160
3254
  backgroundColor: bg,
3161
3255
  borderLeftColor: accent
3162
3256
  }
3163
3257
  ],
3164
3258
  children: [
3165
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles16.quotedSender, { color: accent }], numberOfLines: 1, children: senderName }),
3166
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles16.quotedBody, { color: txt }], numberOfLines: 2, children: quoted.deleted_at ? "Original message deleted" : quoted.body ?? "\u2026" })
3259
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles17.quotedSender, { color: accent }], numberOfLines: 1, children: senderName }),
3260
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles17.quotedBody, { color: txt }], numberOfLines: 2, children: quoted.deleted_at ? "Original message deleted" : quoted.body ?? "\u2026" })
3167
3261
  ]
3168
3262
  }
3169
3263
  );
@@ -3195,7 +3289,7 @@ function formatTime2(iso) {
3195
3289
  function isSameDay(a, b) {
3196
3290
  return a.getFullYear() === b.getFullYear() && a.getMonth() === b.getMonth() && a.getDate() === b.getDate();
3197
3291
  }
3198
- var styles16 = reactNative.StyleSheet.create({
3292
+ var styles17 = reactNative.StyleSheet.create({
3199
3293
  wrap: {
3200
3294
  marginBottom: 2
3201
3295
  },
@@ -3322,7 +3416,7 @@ function ReactionStrip({
3322
3416
  });
3323
3417
  const entries = Object.entries(reactions);
3324
3418
  if (entries.length === 0) return null;
3325
- return /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles17.strip, children: entries.map(([emoji, userIds]) => {
3419
+ return /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles18.strip, children: entries.map(([emoji, userIds]) => {
3326
3420
  const userArr = Array.isArray(userIds) ? userIds : [];
3327
3421
  const meReacted = meId !== null && userArr.includes(meId);
3328
3422
  return /* @__PURE__ */ jsxRuntime.jsxs(
@@ -3330,7 +3424,7 @@ function ReactionStrip({
3330
3424
  {
3331
3425
  onPress: () => meReacted ? removeReaction(emoji) : addReaction(emoji),
3332
3426
  style: [
3333
- styles17.chip,
3427
+ styles18.chip,
3334
3428
  {
3335
3429
  backgroundColor: meReacted ? theme.colors.brandSoft : theme.colors.surface2,
3336
3430
  borderColor: meReacted ? theme.colors.brand : theme.colors.border,
@@ -3339,12 +3433,12 @@ function ReactionStrip({
3339
3433
  }
3340
3434
  ],
3341
3435
  children: [
3342
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: styles17.emoji, children: emoji }),
3436
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: styles18.emoji, children: emoji }),
3343
3437
  /* @__PURE__ */ jsxRuntime.jsx(
3344
3438
  reactNative.Text,
3345
3439
  {
3346
3440
  style: [
3347
- styles17.count,
3441
+ styles18.count,
3348
3442
  {
3349
3443
  color: meReacted ? theme.colors.brand : theme.colors.ink2,
3350
3444
  fontWeight: meReacted ? "700" : "600"
@@ -3378,13 +3472,13 @@ function ReactionPicker({
3378
3472
  children: /* @__PURE__ */ jsxRuntime.jsx(
3379
3473
  reactNative.Pressable,
3380
3474
  {
3381
- style: [styles17.backdrop, { paddingTop: insets.top, paddingBottom: insets.bottom }],
3475
+ style: [styles18.backdrop, { paddingTop: insets.top, paddingBottom: insets.bottom }],
3382
3476
  onPress: onClose,
3383
3477
  children: /* @__PURE__ */ jsxRuntime.jsx(
3384
3478
  reactNative.View,
3385
3479
  {
3386
3480
  style: [
3387
- styles17.sheet,
3481
+ styles18.sheet,
3388
3482
  {
3389
3483
  backgroundColor: theme.colors.surface,
3390
3484
  borderRadius: theme.radii.lg
@@ -3394,12 +3488,12 @@ function ReactionPicker({
3394
3488
  children: emojis.map((emoji) => /* @__PURE__ */ jsxRuntime.jsx(
3395
3489
  reactNative.Pressable,
3396
3490
  {
3397
- style: styles17.emojiBtn,
3491
+ style: styles18.emojiBtn,
3398
3492
  onPress: () => {
3399
3493
  onPick(emoji);
3400
3494
  onClose();
3401
3495
  },
3402
- children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: styles17.bigEmoji, children: emoji })
3496
+ children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: styles18.bigEmoji, children: emoji })
3403
3497
  },
3404
3498
  emoji
3405
3499
  ))
@@ -3410,7 +3504,7 @@ function ReactionPicker({
3410
3504
  }
3411
3505
  );
3412
3506
  }
3413
- var styles17 = reactNative.StyleSheet.create({
3507
+ var styles18 = reactNative.StyleSheet.create({
3414
3508
  strip: {
3415
3509
  flexDirection: "row",
3416
3510
  flexWrap: "wrap",
@@ -3470,7 +3564,14 @@ var SWIPE_REPLY_THRESHOLD = 50;
3470
3564
  function MessageRow(props) {
3471
3565
  const callLog = react$1.callLogDisplayFor(props.msg, props.meId);
3472
3566
  if (callLog !== void 0) {
3473
- return callLog ? /* @__PURE__ */ jsxRuntime.jsx(CallLogRow, { msg: props.msg, meId: props.meId }) : null;
3567
+ return callLog ? /* @__PURE__ */ jsxRuntime.jsx(
3568
+ CallLogRow,
3569
+ {
3570
+ msg: props.msg,
3571
+ meId: props.meId,
3572
+ ...props.onCallBack ? { onCallBack: props.onCallBack } : {}
3573
+ }
3574
+ ) : null;
3474
3575
  }
3475
3576
  return /* @__PURE__ */ jsxRuntime.jsx(BubbleMessageRow, { ...props });
3476
3577
  }
@@ -3585,15 +3686,15 @@ function BubbleMessageRow({
3585
3686
  reactNative.View,
3586
3687
  {
3587
3688
  style: [
3588
- styles18.row,
3689
+ styles19.row,
3589
3690
  { alignSelf: isSelf ? "flex-end" : "flex-start" },
3590
3691
  // Lift this row above the dim backdrop the parent renders
3591
3692
  // during edit mode. zIndex covers iOS / web; elevation does
3592
3693
  // the equivalent on Android.
3593
- isEditing ? styles18.rowEditing : null
3694
+ isEditing ? styles19.rowEditing : null
3594
3695
  ],
3595
3696
  children: [
3596
- showAvatarSlot ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles18.avatarSlot, children: showAvatarRender ? /* @__PURE__ */ jsxRuntime.jsx(
3697
+ showAvatarSlot ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles19.avatarSlot, children: showAvatarRender ? /* @__PURE__ */ jsxRuntime.jsx(
3597
3698
  Avatar,
3598
3699
  {
3599
3700
  src: avatarUrl ?? null,
@@ -3602,14 +3703,14 @@ function BubbleMessageRow({
3602
3703
  size: "sm"
3603
3704
  }
3604
3705
  ) : null }) : null,
3605
- /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles18.bubbleCol, children: [
3706
+ /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles19.bubbleCol, children: [
3606
3707
  swipeEnabled ? /* @__PURE__ */ jsxRuntime.jsx(
3607
3708
  reactNative.Animated.View,
3608
3709
  {
3609
3710
  pointerEvents: "none",
3610
3711
  style: [
3611
- styles18.replyHint,
3612
- isSelf ? styles18.replyHintRight : styles18.replyHintLeft,
3712
+ styles19.replyHint,
3713
+ isSelf ? styles19.replyHintRight : styles19.replyHintLeft,
3613
3714
  {
3614
3715
  opacity: replyIconOpacity,
3615
3716
  transform: [{ scale: replyIconScale }],
@@ -3655,13 +3756,13 @@ function BubbleMessageRow({
3655
3756
  )
3656
3757
  }
3657
3758
  ),
3658
- threads && (msg.reply_count ?? 0) > 0 && onOpenThread ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Pressable, { onPress: onOpenThread, style: styles18.threadPill, children: /* @__PURE__ */ jsxRuntime.jsxs(reactNative.Text, { style: [styles18.threadPillText, { color: theme.colors.brand }], children: [
3759
+ threads && (msg.reply_count ?? 0) > 0 && onOpenThread ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Pressable, { onPress: onOpenThread, style: styles19.threadPill, children: /* @__PURE__ */ jsxRuntime.jsxs(reactNative.Text, { style: [styles19.threadPillText, { color: theme.colors.brand }], children: [
3659
3760
  "\u{1F4AC} ",
3660
3761
  msg.reply_count,
3661
3762
  " ",
3662
3763
  msg.reply_count === 1 ? "reply" : "replies"
3663
3764
  ] }) }) : null,
3664
- reactions ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [styles18.reactionsRow, { alignSelf: isSelf ? "flex-end" : "flex-start" }], children: /* @__PURE__ */ jsxRuntime.jsx(
3765
+ reactions ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [styles19.reactionsRow, { alignSelf: isSelf ? "flex-end" : "flex-start" }], children: /* @__PURE__ */ jsxRuntime.jsx(
3665
3766
  ReactionStrip,
3666
3767
  {
3667
3768
  messageId: msg.id,
@@ -3720,7 +3821,7 @@ function BubbleMessageRow({
3720
3821
  }
3721
3822
  );
3722
3823
  }
3723
- var styles18 = reactNative.StyleSheet.create({
3824
+ var styles19 = reactNative.StyleSheet.create({
3724
3825
  row: {
3725
3826
  flexDirection: "row",
3726
3827
  alignItems: "flex-end",
@@ -3889,15 +3990,15 @@ function ThreadSheet({
3889
3990
  return /* @__PURE__ */ jsxRuntime.jsxs(
3890
3991
  reactNative.View,
3891
3992
  {
3892
- style: styles19.modalRoot,
3993
+ style: styles20.modalRoot,
3893
3994
  onLayout: (e) => setRootHeight(Math.round(e.nativeEvent.layout.height)),
3894
3995
  children: [
3895
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.Pressable, { style: styles19.backdrop, onPress: onClose, accessibilityLabel: "Close thread" }),
3996
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Pressable, { style: styles20.backdrop, onPress: onClose, accessibilityLabel: "Close thread" }),
3896
3997
  /* @__PURE__ */ jsxRuntime.jsxs(
3897
3998
  reactNative.Animated.View,
3898
3999
  {
3899
4000
  style: [
3900
- styles19.sheet,
4001
+ styles20.sheet,
3901
4002
  {
3902
4003
  height: sheetHeight,
3903
4004
  backgroundColor: theme.colors.paper,
@@ -3911,14 +4012,14 @@ function ThreadSheet({
3911
4012
  ],
3912
4013
  children: [
3913
4014
  /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { ...panHandlers, children: [
3914
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles19.dragHandle, children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [styles19.dragPill, { backgroundColor: theme.colors.ink3 }] }) }),
3915
- /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [styles19.header, { borderBottomColor: theme.colors.border }], children: [
4015
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles20.dragHandle, children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [styles20.dragPill, { backgroundColor: theme.colors.ink3 }] }) }),
4016
+ /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [styles20.header, { borderBottomColor: theme.colors.border }], children: [
3916
4017
  /* @__PURE__ */ jsxRuntime.jsx(
3917
4018
  reactNative.Pressable,
3918
4019
  {
3919
4020
  onPress: onClose,
3920
4021
  hitSlop: 16,
3921
- style: [styles19.closeBtn, { backgroundColor: theme.colors.surface2 }],
4022
+ style: [styles20.closeBtn, { backgroundColor: theme.colors.surface2 }],
3922
4023
  accessibilityLabel: "Close thread",
3923
4024
  children: /* @__PURE__ */ jsxRuntime.jsx(PoolseIcon, { name: "close", size: 18, color: theme.colors.ink })
3924
4025
  }
@@ -3927,7 +4028,7 @@ function ThreadSheet({
3927
4028
  reactNative.Text,
3928
4029
  {
3929
4030
  style: [
3930
- styles19.title,
4031
+ styles20.title,
3931
4032
  { color: theme.colors.ink, fontFamily: theme.type.fontDisplay }
3932
4033
  ],
3933
4034
  children: "Thread"
@@ -3938,12 +4039,12 @@ function ThreadSheet({
3938
4039
  /* @__PURE__ */ jsxRuntime.jsxs(
3939
4040
  reactNative.KeyboardAvoidingView,
3940
4041
  {
3941
- style: styles19.kavBody,
4042
+ style: styles20.kavBody,
3942
4043
  behavior: "padding",
3943
4044
  keyboardVerticalOffset: gutter,
3944
4045
  children: [
3945
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [styles19.rootPreview, { backgroundColor: theme.colors.surface2 }], children: rootRow }),
3946
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles19.listWrap, children: /* @__PURE__ */ jsxRuntime.jsx(
4046
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [styles20.rootPreview, { backgroundColor: theme.colors.surface2 }], children: rootRow }),
4047
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles20.listWrap, children: /* @__PURE__ */ jsxRuntime.jsx(
3947
4048
  MessageList,
3948
4049
  {
3949
4050
  messages: replies,
@@ -3981,7 +4082,7 @@ function ThreadSheet({
3981
4082
  }
3982
4083
  );
3983
4084
  }
3984
- var styles19 = reactNative.StyleSheet.create({
4085
+ var styles20 = reactNative.StyleSheet.create({
3985
4086
  modalRoot: {
3986
4087
  flex: 1,
3987
4088
  justifyContent: "flex-end"
@@ -4053,7 +4154,7 @@ function TypingIndicator({ typing, labelFor }) {
4053
4154
  const ids = Array.from(typing);
4054
4155
  const isTyping = ids.length > 0;
4055
4156
  if (!isTyping) return /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: { height: 0 } });
4056
- return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles20.row, children: [
4157
+ return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles21.row, children: [
4057
4158
  /* @__PURE__ */ jsxRuntime.jsx(TypingDots, {}),
4058
4159
  /* @__PURE__ */ jsxRuntime.jsx(TypingLabel, { ids, ...labelFor ? { labelFor } : {} })
4059
4160
  ] });
@@ -4098,7 +4199,7 @@ function TypingDots() {
4098
4199
  ],
4099
4200
  opacity: val.interpolate({ inputRange: [0, 1], outputRange: [0.5, 1] })
4100
4201
  });
4101
- return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles20.dotsWrap, children: [
4202
+ return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles21.dotsWrap, children: [
4102
4203
  /* @__PURE__ */ jsxRuntime.jsx(reactNative.Animated.View, { style: dot(a) }),
4103
4204
  /* @__PURE__ */ jsxRuntime.jsx(reactNative.Animated.View, { style: dot(b) }),
4104
4205
  /* @__PURE__ */ jsxRuntime.jsx(reactNative.Animated.View, { style: dot(c) })
@@ -4114,9 +4215,9 @@ function TypingLabel({
4114
4215
  const name1 = useDisplayName(id1, labelFor);
4115
4216
  const name2 = useDisplayName(id2, labelFor);
4116
4217
  const text = ids.length === 1 ? `${name1} is typing` : ids.length === 2 ? `${name1} and ${name2} are typing` : `${ids.length} people are typing`;
4117
- return /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles20.label, { color: theme.colors.ink2, fontFamily: theme.type.fontBody }], children: text });
4218
+ return /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles21.label, { color: theme.colors.ink2, fontFamily: theme.type.fontBody }], children: text });
4118
4219
  }
4119
- var styles20 = reactNative.StyleSheet.create({
4220
+ var styles21 = reactNative.StyleSheet.create({
4120
4221
  row: {
4121
4222
  flexDirection: "row",
4122
4223
  alignItems: "center",
@@ -4156,11 +4257,16 @@ function ConversationView({
4156
4257
  avatars = "auto",
4157
4258
  onMarkedRead,
4158
4259
  onSent,
4159
- keyboardOffset = 0
4260
+ keyboardOffset = 0,
4261
+ onCallBack,
4262
+ onJoinCall,
4263
+ currentCallId = null
4160
4264
  }) {
4161
4265
  const theme = usePoolseTheme();
4162
4266
  const { me } = react$1.useMe();
4163
4267
  const meId = me?.id ?? null;
4268
+ const receiptsVisible = react$1.receiptsOf(me).visible;
4269
+ const showReadState = readReceipts && receiptsVisible;
4164
4270
  const {
4165
4271
  messages,
4166
4272
  loading,
@@ -4239,9 +4345,15 @@ function ConversationView({
4239
4345
  const custom = renderMessage(msg, meId);
4240
4346
  if (custom !== null && custom !== void 0) return custom;
4241
4347
  }
4242
- const readState = readReceipts && meId !== null && msg.sender_id === meId ? readStateForMessage(msg, members, meId, sequenceByMessageId) : void 0;
4348
+ const readState = showReadState && meId !== null && msg.sender_id === meId ? readStateForMessage(msg, members, meId, sequenceByMessageId) : void 0;
4243
4349
  const isSelf = meId !== null && msg.sender_id === meId;
4244
- const canEdit = isSelf && !msg.deleted_at && (readState ?? "sent") === "sent";
4350
+ const canEdit = react$1.canEditOwnMessage({
4351
+ isSelf,
4352
+ deleted: !!msg.deleted_at,
4353
+ receiptsVisible,
4354
+ readState,
4355
+ insertedAt: msg.inserted_at
4356
+ });
4245
4357
  const groupPosition = groupPositionById.get(msg.id) ?? "standalone";
4246
4358
  return /* @__PURE__ */ jsxRuntime.jsx(
4247
4359
  MessageRow,
@@ -4265,14 +4377,18 @@ function ConversationView({
4265
4377
  showAvatar: showAvatars,
4266
4378
  maxBodyLength,
4267
4379
  groupPosition,
4268
- markdown
4380
+ markdown,
4381
+ ...onCallBack ? { onCallBack } : {}
4269
4382
  }
4270
4383
  );
4271
4384
  },
4272
4385
  [
4386
+ onCallBack,
4273
4387
  renderMessage,
4274
4388
  meId,
4275
4389
  readReceipts,
4390
+ showReadState,
4391
+ receiptsVisible,
4276
4392
  members,
4277
4393
  reactions,
4278
4394
  attachments,
@@ -4361,12 +4477,21 @@ function ConversationView({
4361
4477
  return /* @__PURE__ */ jsxRuntime.jsx(UploadProvider, { children: /* @__PURE__ */ jsxRuntime.jsxs(
4362
4478
  reactNative.KeyboardAvoidingView,
4363
4479
  {
4364
- style: [styles21.root, { backgroundColor: theme.colors.paper }],
4480
+ style: [styles22.root, { backgroundColor: theme.colors.paper }],
4365
4481
  behavior: reactNative.Platform.OS === "ios" ? "padding" : "height",
4366
4482
  keyboardVerticalOffset: keyboardOffset,
4367
4483
  children: [
4368
4484
  headerNode,
4369
- /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles21.listWrap, children: [
4485
+ onJoinCall ? /* @__PURE__ */ jsxRuntime.jsx(
4486
+ JoinBanner,
4487
+ {
4488
+ conversationId,
4489
+ meId,
4490
+ currentCallId,
4491
+ onJoin: onJoinCall
4492
+ }
4493
+ ) : null,
4494
+ /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles22.listWrap, children: [
4370
4495
  /* @__PURE__ */ jsxRuntime.jsx(
4371
4496
  MessageList,
4372
4497
  {
@@ -4384,7 +4509,7 @@ function ConversationView({
4384
4509
  editingId ? /* @__PURE__ */ jsxRuntime.jsx(
4385
4510
  reactNative.Pressable,
4386
4511
  {
4387
- style: styles21.editBackdrop,
4512
+ style: styles22.editBackdrop,
4388
4513
  onPress: () => setEditingId(null),
4389
4514
  accessibilityLabel: "Cancel editing"
4390
4515
  }
@@ -4406,6 +4531,17 @@ function ConversationView({
4406
4531
  }
4407
4532
  ) });
4408
4533
  }
4534
+ function JoinBanner({
4535
+ conversationId,
4536
+ meId,
4537
+ currentCallId,
4538
+ onJoin
4539
+ }) {
4540
+ const { call, participantIds } = react$1.useLiveCall(conversationId);
4541
+ if (!call || call.id === currentCallId) return null;
4542
+ if (meId !== null && participantIds.includes(meId)) return null;
4543
+ return /* @__PURE__ */ jsxRuntime.jsx(LiveCallBanner, { call, inCall: participantIds.length, onJoin });
4544
+ }
4409
4545
  function readStateForMessage(msg, members, meId, sequenceByMessageId) {
4410
4546
  const otherMembers = members.filter((m) => m.user_id !== meId);
4411
4547
  if (otherMembers.length === 0) return "sent";
@@ -4419,7 +4555,7 @@ function readStateForMessage(msg, members, meId, sequenceByMessageId) {
4419
4555
  });
4420
4556
  return anyRead ? "read" : "sent";
4421
4557
  }
4422
- var styles21 = reactNative.StyleSheet.create({
4558
+ var styles22 = reactNative.StyleSheet.create({
4423
4559
  root: {
4424
4560
  flex: 1
4425
4561
  },
@@ -4509,15 +4645,15 @@ function UserPickerSheet({
4509
4645
  children: /* @__PURE__ */ jsxRuntime.jsxs(
4510
4646
  reactNative.View,
4511
4647
  {
4512
- style: styles22.modalRoot,
4648
+ style: styles23.modalRoot,
4513
4649
  onLayout: (e) => setRootHeight(Math.round(e.nativeEvent.layout.height)),
4514
4650
  children: [
4515
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.Pressable, { style: styles22.backdrop, onPress: handleClose }),
4651
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Pressable, { style: styles23.backdrop, onPress: handleClose }),
4516
4652
  /* @__PURE__ */ jsxRuntime.jsx(
4517
4653
  reactNative.Animated.View,
4518
4654
  {
4519
4655
  style: [
4520
- styles22.sheet,
4656
+ styles23.sheet,
4521
4657
  {
4522
4658
  backgroundColor: theme.colors.paper,
4523
4659
  borderTopLeftRadius: theme.radii.xl,
@@ -4535,18 +4671,18 @@ function UserPickerSheet({
4535
4671
  children: /* @__PURE__ */ jsxRuntime.jsxs(
4536
4672
  reactNative.KeyboardAvoidingView,
4537
4673
  {
4538
- style: styles22.kav,
4674
+ style: styles23.kav,
4539
4675
  behavior: "padding",
4540
4676
  keyboardVerticalOffset: screenHeight - sheetHeight,
4541
4677
  children: [
4542
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { ...panHandlers, style: styles22.dragHandle, children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [styles22.dragPill, { backgroundColor: theme.colors.ink3 }] }) }),
4543
- /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles22.header, children: [
4678
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { ...panHandlers, style: styles23.dragHandle, children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [styles23.dragPill, { backgroundColor: theme.colors.ink3 }] }) }),
4679
+ /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles23.header, children: [
4544
4680
  /* @__PURE__ */ jsxRuntime.jsx(
4545
4681
  reactNative.Pressable,
4546
4682
  {
4547
4683
  onPress: handleClose,
4548
4684
  hitSlop: 16,
4549
- style: [styles22.closeBtn, { backgroundColor: theme.colors.surface2 }],
4685
+ style: [styles23.closeBtn, { backgroundColor: theme.colors.surface2 }],
4550
4686
  accessibilityLabel: "Close picker",
4551
4687
  children: /* @__PURE__ */ jsxRuntime.jsx(PoolseIcon, { name: "close", size: 18, color: theme.colors.ink })
4552
4688
  }
@@ -4555,7 +4691,7 @@ function UserPickerSheet({
4555
4691
  reactNative.Text,
4556
4692
  {
4557
4693
  style: [
4558
- styles22.title,
4694
+ styles23.title,
4559
4695
  { color: theme.colors.ink, fontFamily: theme.type.fontDisplay }
4560
4696
  ],
4561
4697
  numberOfLines: 1,
@@ -4569,7 +4705,7 @@ function UserPickerSheet({
4569
4705
  disabled: !canCreate,
4570
4706
  hitSlop: 6,
4571
4707
  style: [
4572
- styles22.createBtn,
4708
+ styles23.createBtn,
4573
4709
  {
4574
4710
  backgroundColor: canCreate ? theme.colors.brand : theme.colors.surface2,
4575
4711
  opacity: canCreate ? 1 : 0.6
@@ -4600,7 +4736,7 @@ function UserPickerSheet({
4600
4736
  value: groupName,
4601
4737
  onChangeText: setGroupName,
4602
4738
  style: [
4603
- styles22.groupNameInput,
4739
+ styles23.groupNameInput,
4604
4740
  {
4605
4741
  color: theme.colors.ink,
4606
4742
  backgroundColor: theme.colors.surface2,
@@ -4619,7 +4755,7 @@ function UserPickerSheet({
4619
4755
  value: query,
4620
4756
  onChangeText: setQuery,
4621
4757
  style: [
4622
- styles22.searchInput,
4758
+ styles23.searchInput,
4623
4759
  {
4624
4760
  color: theme.colors.ink,
4625
4761
  backgroundColor: theme.colors.surface2,
@@ -4636,7 +4772,7 @@ function UserPickerSheet({
4636
4772
  data: filtered,
4637
4773
  keyExtractor: (u) => u.externalId,
4638
4774
  keyboardShouldPersistTaps: "handled",
4639
- ListEmptyComponent: /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles22.empty, children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles22.emptyText, { color: theme.colors.ink3 }], children: query ? "No matches." : "No users to show." }) }),
4775
+ ListEmptyComponent: /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles23.empty, children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles23.emptyText, { color: theme.colors.ink3 }], children: query ? "No matches." : "No users to show." }) }),
4640
4776
  renderItem: ({ item }) => /* @__PURE__ */ jsxRuntime.jsx(
4641
4777
  UserRow,
4642
4778
  {
@@ -4678,29 +4814,29 @@ function UserRow({
4678
4814
  {
4679
4815
  onPress,
4680
4816
  style: [
4681
- styles22.row,
4817
+ styles23.row,
4682
4818
  {
4683
4819
  backgroundColor: selected ? theme.colors.brandSoft : "transparent"
4684
4820
  }
4685
4821
  ],
4686
4822
  children: [
4687
- user.avatarUrl ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Image, { source: { uri: user.avatarUrl }, style: styles22.avatarImg }) : /* @__PURE__ */ jsxRuntime.jsx(Avatar, { src: null, name: user.name, seed: user.externalId, size: "md" }),
4688
- /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles22.body, children: [
4823
+ user.avatarUrl ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Image, { source: { uri: user.avatarUrl }, style: styles23.avatarImg }) : /* @__PURE__ */ jsxRuntime.jsx(Avatar, { src: null, name: user.name, seed: user.externalId, size: "md" }),
4824
+ /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles23.body, children: [
4689
4825
  /* @__PURE__ */ jsxRuntime.jsx(
4690
4826
  reactNative.Text,
4691
4827
  {
4692
- style: [styles22.name, { color: theme.colors.ink, fontFamily: theme.type.fontBody }],
4828
+ style: [styles23.name, { color: theme.colors.ink, fontFamily: theme.type.fontBody }],
4693
4829
  numberOfLines: 1,
4694
4830
  children: user.name
4695
4831
  }
4696
4832
  ),
4697
- user.subtitle ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles22.subtitle, { color: theme.colors.ink3 }], numberOfLines: 1, children: user.subtitle }) : null
4833
+ user.subtitle ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles23.subtitle, { color: theme.colors.ink3 }], numberOfLines: 1, children: user.subtitle }) : null
4698
4834
  ] }),
4699
4835
  isGroup ? /* @__PURE__ */ jsxRuntime.jsx(
4700
4836
  reactNative.View,
4701
4837
  {
4702
4838
  style: [
4703
- styles22.checkbox,
4839
+ styles23.checkbox,
4704
4840
  {
4705
4841
  borderColor: selected ? theme.colors.brand : theme.colors.border,
4706
4842
  backgroundColor: selected ? theme.colors.brand : "transparent"
@@ -4713,7 +4849,7 @@ function UserRow({
4713
4849
  }
4714
4850
  );
4715
4851
  }
4716
- var styles22 = reactNative.StyleSheet.create({
4852
+ var styles23 = reactNative.StyleSheet.create({
4717
4853
  modalRoot: {
4718
4854
  flex: 1,
4719
4855
  justifyContent: "flex-end"
@@ -4977,7 +5113,7 @@ var PoolseInbox = react.forwardRef(
4977
5113
  },
4978
5114
  [renderConversationRow, meExternalId, meId, labelFor, avatarFor, unreadCounts]
4979
5115
  );
4980
- return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [styles23.root, { backgroundColor: theme.colors.paper }], children: [
5116
+ return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [styles24.root, { backgroundColor: theme.colors.paper }], children: [
4981
5117
  /* @__PURE__ */ jsxRuntime.jsxs(
4982
5118
  reactNative.Animated.View,
4983
5119
  {
@@ -4988,7 +5124,7 @@ var PoolseInbox = react.forwardRef(
4988
5124
  reactNative.View,
4989
5125
  {
4990
5126
  style: [
4991
- styles23.listHeader,
5127
+ styles24.listHeader,
4992
5128
  {
4993
5129
  backgroundColor: theme.colors.surface,
4994
5130
  borderBottomColor: theme.colors.border
@@ -4999,13 +5135,13 @@ var PoolseInbox = react.forwardRef(
4999
5135
  reactNative.Text,
5000
5136
  {
5001
5137
  style: [
5002
- styles23.listTitle,
5138
+ styles24.listTitle,
5003
5139
  { color: theme.colors.ink, fontFamily: theme.type.fontDisplay }
5004
5140
  ],
5005
5141
  children: title
5006
5142
  }
5007
5143
  ),
5008
- /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles23.headerActions, children: [
5144
+ /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles24.headerActions, children: [
5009
5145
  users ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
5010
5146
  /* @__PURE__ */ jsxRuntime.jsx(
5011
5147
  HeaderIconButton,
@@ -5118,7 +5254,7 @@ function HeaderIconButton({
5118
5254
  hitSlop: 10,
5119
5255
  accessibilityLabel: label,
5120
5256
  style: ({ pressed }) => [
5121
- styles23.iconBtn,
5257
+ styles24.iconBtn,
5122
5258
  {
5123
5259
  backgroundColor: pressed ? theme.colors.surface2 : "transparent"
5124
5260
  }
@@ -5149,31 +5285,31 @@ function DefaultConversationRow({
5149
5285
  {
5150
5286
  onPress,
5151
5287
  style: [
5152
- styles23.row,
5288
+ styles24.row,
5153
5289
  {
5154
5290
  backgroundColor: selected ? theme.colors.surface2 : "transparent",
5155
5291
  borderBottomColor: theme.colors.border
5156
5292
  }
5157
5293
  ],
5158
5294
  children: [
5159
- avatarUrl ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Image, { source: { uri: avatarUrl }, style: styles23.rowAvatar }) : /* @__PURE__ */ jsxRuntime.jsx(Avatar, { src: null, name: title, seed: avatarSeed, size: "md" }),
5160
- /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles23.rowBody, children: [
5295
+ avatarUrl ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Image, { source: { uri: avatarUrl }, style: styles24.rowAvatar }) : /* @__PURE__ */ jsxRuntime.jsx(Avatar, { src: null, name: title, seed: avatarSeed, size: "md" }),
5296
+ /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles24.rowBody, children: [
5161
5297
  /* @__PURE__ */ jsxRuntime.jsx(
5162
5298
  reactNative.Text,
5163
5299
  {
5164
- style: [styles23.rowTitle, { color: theme.colors.ink, fontFamily: theme.type.fontBody }],
5300
+ style: [styles24.rowTitle, { color: theme.colors.ink, fontFamily: theme.type.fontBody }],
5165
5301
  numberOfLines: 1,
5166
5302
  children: title
5167
5303
  }
5168
5304
  ),
5169
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles23.rowSubtitle, { color: theme.colors.ink3 }], numberOfLines: 1, children: react$1.formatCallLogPreview(conv.last_message_preview, meId) ?? conv.last_message_preview ?? (isDirect ? otherExtId ?? "" : `${(conv.member_external_ids ?? []).length} members`) })
5305
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles24.rowSubtitle, { color: theme.colors.ink3 }], numberOfLines: 1, children: react$1.formatCallLogPreview(conv.last_message_preview, meId) ?? conv.last_message_preview ?? (isDirect ? otherExtId ?? "" : `${(conv.member_external_ids ?? []).length} members`) })
5170
5306
  ] }),
5171
- unread > 0 ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [styles23.unreadPill, { backgroundColor: theme.colors.unreadPill }], children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles23.unreadText, { color: theme.colors.unreadPillText }], children: unread > 99 ? "99+" : String(unread) }) }) : null
5307
+ unread > 0 ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [styles24.unreadPill, { backgroundColor: theme.colors.unreadPill }], children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles24.unreadText, { color: theme.colors.unreadPillText }], children: unread > 99 ? "99+" : String(unread) }) }) : null
5172
5308
  ]
5173
5309
  }
5174
5310
  );
5175
5311
  }
5176
- var styles23 = reactNative.StyleSheet.create({
5312
+ var styles24 = reactNative.StyleSheet.create({
5177
5313
  root: {
5178
5314
  flex: 1,
5179
5315
  overflow: "hidden"
@@ -5377,10 +5513,10 @@ function VoiceRoomBar({
5377
5513
  reactNative.View,
5378
5514
  {
5379
5515
  style: [
5380
- styles24.bar,
5516
+ styles25.bar,
5381
5517
  { backgroundColor: theme.colors.surface, borderBottomColor: theme.colors.border }
5382
5518
  ],
5383
- children: unavailableSlot ?? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles24.hint, { color: theme.colors.ink3 }], children: "Voice needs react-native-webrtc and a development build." })
5519
+ children: unavailableSlot ?? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles25.hint, { color: theme.colors.ink3 }], children: "Voice needs react-native-webrtc and a development build." })
5384
5520
  }
5385
5521
  );
5386
5522
  }
@@ -5388,22 +5524,22 @@ function VoiceRoomBar({
5388
5524
  reactNative.View,
5389
5525
  {
5390
5526
  style: [
5391
- styles24.bar,
5527
+ styles25.bar,
5392
5528
  { backgroundColor: theme.colors.surface, borderBottomColor: theme.colors.border }
5393
5529
  ],
5394
5530
  children: [
5395
- /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles24.row, children: [
5531
+ /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles25.row, children: [
5396
5532
  /* @__PURE__ */ jsxRuntime.jsx(
5397
5533
  reactNative.View,
5398
5534
  {
5399
5535
  style: [
5400
- styles24.dot,
5536
+ styles25.dot,
5401
5537
  { backgroundColor: connected ? theme.colors.brand : theme.colors.ink3 }
5402
5538
  ]
5403
5539
  }
5404
5540
  ),
5405
5541
  connected ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
5406
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles24.people, children: participants.length === 0 ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles24.hint, { color: theme.colors.ink3 }], children: "Waiting for others\u2026" }) : participants.map((p) => /* @__PURE__ */ jsxRuntime.jsx(ParticipantChip, { participant: p, label: label(p.userId) }, p.userId)) }),
5542
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles25.people, children: participants.length === 0 ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles25.hint, { color: theme.colors.ink3 }], children: "Waiting for others\u2026" }) : participants.map((p) => /* @__PURE__ */ jsxRuntime.jsx(ParticipantChip, { participant: p, label: label(p.userId) }, p.userId)) }),
5407
5543
  /* @__PURE__ */ jsxRuntime.jsx(
5408
5544
  reactNative.Pressable,
5409
5545
  {
@@ -5411,7 +5547,7 @@ function VoiceRoomBar({
5411
5547
  accessibilityRole: "button",
5412
5548
  accessibilityState: { selected: muted },
5413
5549
  style: [
5414
- styles24.btn,
5550
+ styles25.btn,
5415
5551
  {
5416
5552
  borderColor: muted ? theme.colors.brand : theme.colors.border,
5417
5553
  backgroundColor: muted ? theme.colors.brandSoft : theme.colors.paper
@@ -5425,25 +5561,25 @@ function VoiceRoomBar({
5425
5561
  {
5426
5562
  onPress: leave,
5427
5563
  accessibilityRole: "button",
5428
- style: [styles24.btn, { borderColor: theme.colors.error }],
5564
+ style: [styles25.btn, { borderColor: theme.colors.error }],
5429
5565
  children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: { color: theme.colors.error }, children: "Leave" })
5430
5566
  }
5431
5567
  )
5432
5568
  ] }) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
5433
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles24.hint, { color: theme.colors.ink3 }], children: status === "connecting" ? "Connecting\u2026" : "Talk to everyone here" }),
5569
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles25.hint, { color: theme.colors.ink3 }], children: status === "connecting" ? "Connecting\u2026" : "Talk to everyone here" }),
5434
5570
  /* @__PURE__ */ jsxRuntime.jsx(
5435
5571
  reactNative.Pressable,
5436
5572
  {
5437
5573
  onPress: () => void join(),
5438
5574
  disabled: status === "connecting",
5439
5575
  accessibilityRole: "button",
5440
- style: [styles24.btn, styles24.btnPrimary, { backgroundColor: theme.colors.brand }],
5576
+ style: [styles25.btn, styles25.btnPrimary, { backgroundColor: theme.colors.brand }],
5441
5577
  children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: { color: theme.colors.onBrand, fontWeight: "600" }, children: status === "connecting" ? "Joining\u2026" : "Join Voice" })
5442
5578
  }
5443
5579
  )
5444
5580
  ] })
5445
5581
  ] }),
5446
- error && /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles24.error, { color: theme.colors.error }], children: error.message })
5582
+ error && /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles25.error, { color: theme.colors.error }], children: error.message })
5447
5583
  ]
5448
5584
  }
5449
5585
  );
@@ -5454,7 +5590,7 @@ function ParticipantChip({ participant, label }) {
5454
5590
  reactNative.View,
5455
5591
  {
5456
5592
  style: [
5457
- styles24.chip,
5593
+ styles25.chip,
5458
5594
  {
5459
5595
  backgroundColor: theme.colors.paper,
5460
5596
  // The speaking ring is a border colour swap rather than an
@@ -5473,7 +5609,7 @@ function ParticipantChip({ participant, label }) {
5473
5609
  }
5474
5610
  );
5475
5611
  }
5476
- var styles24 = reactNative.StyleSheet.create({
5612
+ var styles25 = reactNative.StyleSheet.create({
5477
5613
  bar: { paddingHorizontal: 14, paddingVertical: 8, borderBottomWidth: reactNative.StyleSheet.hairlineWidth },
5478
5614
  row: { flexDirection: "row", alignItems: "center", gap: 8, flexWrap: "wrap" },
5479
5615
  dot: { width: 8, height: 8, borderRadius: 4 },
@@ -5551,15 +5687,15 @@ function AudioRouteSheet({
5551
5687
  animationType: "fade",
5552
5688
  onRequestClose: onClose,
5553
5689
  ...EDGE_TO_EDGE_MODAL,
5554
- children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Pressable, { style: styles25.backdrop, onPress: onClose, accessibilityRole: "button", children: /* @__PURE__ */ jsxRuntime.jsxs(
5690
+ children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Pressable, { style: styles26.backdrop, onPress: onClose, accessibilityRole: "button", children: /* @__PURE__ */ jsxRuntime.jsxs(
5555
5691
  reactNative.Pressable,
5556
5692
  {
5557
- style: [styles25.sheet, { paddingBottom: Math.max(34, insets.bottom + 16) }],
5693
+ style: [styles26.sheet, { paddingBottom: Math.max(34, insets.bottom + 16) }],
5558
5694
  onPress: () => {
5559
5695
  },
5560
5696
  children: [
5561
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles25.grabber }),
5562
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: styles25.title, children: "Audio output" }),
5697
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles26.grabber }),
5698
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: styles26.title, children: "Audio output" }),
5563
5699
  routes.map((route) => {
5564
5700
  const selected = route.id === selectedRouteId;
5565
5701
  return /* @__PURE__ */ jsxRuntime.jsxs(
@@ -5571,7 +5707,7 @@ function AudioRouteSheet({
5571
5707
  },
5572
5708
  accessibilityRole: "button",
5573
5709
  accessibilityState: { selected },
5574
- style: ({ pressed }) => [styles25.row, pressed && styles25.rowPressed],
5710
+ style: ({ pressed }) => [styles26.row, pressed && styles26.rowPressed],
5575
5711
  children: [
5576
5712
  /* @__PURE__ */ jsxRuntime.jsx(
5577
5713
  PoolseIcon,
@@ -5582,7 +5718,7 @@ function AudioRouteSheet({
5582
5718
  label: null
5583
5719
  }
5584
5720
  ),
5585
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles25.label, selected && styles25.labelSelected], children: route.label }),
5721
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles26.label, selected && styles26.labelSelected], children: route.label }),
5586
5722
  selected && /* @__PURE__ */ jsxRuntime.jsx(PoolseIcon, { name: "check", size: 19, color: callColors.accept, label: "selected" })
5587
5723
  ]
5588
5724
  },
@@ -5595,7 +5731,7 @@ function AudioRouteSheet({
5595
5731
  }
5596
5732
  );
5597
5733
  }
5598
- var styles25 = reactNative.StyleSheet.create({
5734
+ var styles26 = reactNative.StyleSheet.create({
5599
5735
  backdrop: { flex: 1, backgroundColor: "rgba(0,0,0,0.55)", justifyContent: "flex-end" },
5600
5736
  sheet: {
5601
5737
  backgroundColor: callColors.tile,
@@ -5676,11 +5812,11 @@ function PulseRings({ size, color }) {
5676
5812
  });
5677
5813
  return () => loops.forEach((l) => l.stop());
5678
5814
  }, []);
5679
- return /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [reactNative.StyleSheet.absoluteFill, styles26.center], pointerEvents: "none", children: phases.map((p, i) => /* @__PURE__ */ jsxRuntime.jsx(
5815
+ return /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [reactNative.StyleSheet.absoluteFill, styles27.center], pointerEvents: "none", children: phases.map((p, i) => /* @__PURE__ */ jsxRuntime.jsx(
5680
5816
  reactNative.Animated.View,
5681
5817
  {
5682
5818
  style: [
5683
- styles26.ring,
5819
+ styles27.ring,
5684
5820
  {
5685
5821
  width: size,
5686
5822
  height: size,
@@ -5701,7 +5837,7 @@ function PulseRings({ size, color }) {
5701
5837
  i
5702
5838
  )) });
5703
5839
  }
5704
- var styles26 = reactNative.StyleSheet.create({
5840
+ var styles27 = reactNative.StyleSheet.create({
5705
5841
  center: { alignItems: "center", justifyContent: "center" },
5706
5842
  ring: { position: "absolute", borderWidth: 1.5 }
5707
5843
  });
@@ -5712,7 +5848,7 @@ function CallAvatar({ name, seed, size, speaking = false }) {
5712
5848
  reactNative.View,
5713
5849
  {
5714
5850
  style: [
5715
- styles27.ring,
5851
+ styles28.ring,
5716
5852
  {
5717
5853
  width: outer,
5718
5854
  height: outer,
@@ -5725,7 +5861,7 @@ function CallAvatar({ name, seed, size, speaking = false }) {
5725
5861
  reactNative.View,
5726
5862
  {
5727
5863
  style: [
5728
- styles27.circle,
5864
+ styles28.circle,
5729
5865
  {
5730
5866
  width: size,
5731
5867
  height: size,
@@ -5736,7 +5872,7 @@ function CallAvatar({ name, seed, size, speaking = false }) {
5736
5872
  children: /* @__PURE__ */ jsxRuntime.jsx(
5737
5873
  reactNative.Text,
5738
5874
  {
5739
- style: [styles27.initials, { fontSize: Math.round(size * 0.38) }],
5875
+ style: [styles28.initials, { fontSize: Math.round(size * 0.38) }],
5740
5876
  numberOfLines: 1,
5741
5877
  allowFontScaling: false,
5742
5878
  children: initialsOf(name)
@@ -5753,7 +5889,7 @@ function initialsOf(name) {
5753
5889
  if (parts.length === 1) return parts[0].slice(0, 2).toUpperCase();
5754
5890
  return (parts[0][0] + parts[parts.length - 1][0]).toUpperCase();
5755
5891
  }
5756
- var styles27 = reactNative.StyleSheet.create({
5892
+ var styles28 = reactNative.StyleSheet.create({
5757
5893
  ring: { alignItems: "center", justifyContent: "center" },
5758
5894
  circle: { alignItems: "center", justifyContent: "center" },
5759
5895
  initials: { color: "#ffffff", fontWeight: "600" }
@@ -5771,7 +5907,7 @@ function CallControlButton({
5771
5907
  const size = large ? CONTROL_SIZE_LARGE : CONTROL_SIZE;
5772
5908
  const background = tone === "danger" ? callColors.danger : tone === "accept" ? callColors.accept : active ? callColors.controlActive : callColors.control;
5773
5909
  const iconColor = tone === "neutral" && active ? callColors.controlActiveIcon : callColors.onAction;
5774
- return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles28.slot, children: [
5910
+ return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles29.slot, children: [
5775
5911
  /* @__PURE__ */ jsxRuntime.jsx(
5776
5912
  reactNative.Pressable,
5777
5913
  {
@@ -5782,7 +5918,7 @@ function CallControlButton({
5782
5918
  accessibilityLabel: accessibilityLabel ?? label ?? icon,
5783
5919
  hitSlop: 8,
5784
5920
  style: ({ pressed }) => [
5785
- styles28.button,
5921
+ styles29.button,
5786
5922
  {
5787
5923
  width: size,
5788
5924
  height: size,
@@ -5796,10 +5932,10 @@ function CallControlButton({
5796
5932
  children: /* @__PURE__ */ jsxRuntime.jsx(PoolseIcon, { name: icon, size: large ? 30 : 25, color: iconColor, label: null })
5797
5933
  }
5798
5934
  ),
5799
- label ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { numberOfLines: 1, style: styles28.label, children: label }) : null
5935
+ label ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { numberOfLines: 1, style: styles29.label, children: label }) : null
5800
5936
  ] });
5801
5937
  }
5802
- var styles28 = reactNative.StyleSheet.create({
5938
+ var styles29 = reactNative.StyleSheet.create({
5803
5939
  // Fixed width so captions of different lengths cannot shift the row.
5804
5940
  slot: { width: 76, alignItems: "center", gap: 7 },
5805
5941
  button: { alignItems: "center", justifyContent: "center" },
@@ -5820,8 +5956,8 @@ function CallParticipantTile({
5820
5956
  reactNative.View,
5821
5957
  {
5822
5958
  style: [
5823
- styles29.tile,
5824
- bleed ? styles29.bleed : styles29.rounded,
5959
+ styles30.tile,
5960
+ bleed ? styles30.bleed : styles30.rounded,
5825
5961
  {
5826
5962
  backgroundColor: callColors.tile,
5827
5963
  // A ring rather than a badge: it reads at a glance across a
@@ -5840,7 +5976,7 @@ function CallParticipantTile({
5840
5976
  mirror: participant.isSelf,
5841
5977
  zOrder: participant.isSelf ? 1 : 0
5842
5978
  }
5843
- ) : /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles29.placeholder, children: /* @__PURE__ */ jsxRuntime.jsx(
5979
+ ) : /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles30.placeholder, children: /* @__PURE__ */ jsxRuntime.jsx(
5844
5980
  CallAvatar,
5845
5981
  {
5846
5982
  name,
@@ -5849,17 +5985,17 @@ function CallParticipantTile({
5849
5985
  speaking: participant.speaking
5850
5986
  }
5851
5987
  ) }),
5852
- !hideName && /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [styles29.chip, bleed ? styles29.chipBleed : styles29.chipTile], children: [
5988
+ !hideName && /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [styles30.chip, bleed ? styles30.chipBleed : styles30.chipTile], children: [
5853
5989
  !participant.micEnabled && // Worth showing even for yourself — it is the answer to
5854
5990
  // "why can nobody hear me".
5855
5991
  /* @__PURE__ */ jsxRuntime.jsx(PoolseIcon, { name: "mic-off", size: 13, color: callColors.text, label: "muted" }),
5856
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { numberOfLines: 1, style: styles29.name, children: name })
5992
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { numberOfLines: 1, style: styles30.name, children: name })
5857
5993
  ] })
5858
5994
  ]
5859
5995
  }
5860
5996
  );
5861
5997
  }
5862
- var styles29 = reactNative.StyleSheet.create({
5998
+ var styles30 = reactNative.StyleSheet.create({
5863
5999
  tile: { overflow: "hidden", justifyContent: "flex-end", borderWidth: 2 },
5864
6000
  rounded: { borderRadius: 18 },
5865
6001
  bleed: { borderRadius: 0, borderWidth: 0 },
@@ -5957,7 +6093,7 @@ function LocalVideoPip({
5957
6093
  reactNative.Animated.View,
5958
6094
  {
5959
6095
  ...responder.panHandlers,
5960
- style: [styles30.pip, { transform: pan.getTranslateTransform() }],
6096
+ style: [styles31.pip, { transform: pan.getTranslateTransform() }],
5961
6097
  children: /* @__PURE__ */ jsxRuntime.jsx(
5962
6098
  reactNative.Pressable,
5963
6099
  {
@@ -5967,8 +6103,8 @@ function LocalVideoPip({
5967
6103
  },
5968
6104
  accessibilityRole: "button",
5969
6105
  accessibilityLabel: "Your camera. Drag to move, tap to switch camera.",
5970
- style: styles30.fill,
5971
- children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles30.fill, children: /* @__PURE__ */ jsxRuntime.jsx(
6106
+ style: styles31.fill,
6107
+ children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles31.fill, children: /* @__PURE__ */ jsxRuntime.jsx(
5972
6108
  CallParticipantTile,
5973
6109
  {
5974
6110
  participant,
@@ -5977,7 +6113,7 @@ function LocalVideoPip({
5977
6113
  avatarSize: 48,
5978
6114
  hideName: true,
5979
6115
  bleed: true,
5980
- style: styles30.fill
6116
+ style: styles31.fill
5981
6117
  }
5982
6118
  ) })
5983
6119
  }
@@ -5985,7 +6121,7 @@ function LocalVideoPip({
5985
6121
  }
5986
6122
  );
5987
6123
  }
5988
- var styles30 = reactNative.StyleSheet.create({
6124
+ var styles31 = reactNative.StyleSheet.create({
5989
6125
  pip: {
5990
6126
  position: "absolute",
5991
6127
  top: 0,
@@ -6034,11 +6170,11 @@ function CallVideoGrid({
6034
6170
  const availableHeight = size.height > 0 ? size.height - padTop - padBottom : 0;
6035
6171
  const tileHeight = availableHeight > 0 ? (availableHeight - GAP * (rows - 1)) / rows : 0;
6036
6172
  const scrolls = tileHeight > 0 && tileHeight < MIN_TILE_HEIGHT;
6037
- if (participants.length === 0) return /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles31.stage, onLayout });
6173
+ if (participants.length === 0) return /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles32.stage, onLayout });
6038
6174
  if (others.length <= 1) {
6039
6175
  const spotlight = others[0] ?? self;
6040
- if (!spotlight) return /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles31.stage, onLayout });
6041
- return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles31.stage, onLayout, children: [
6176
+ if (!spotlight) return /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles32.stage, onLayout });
6177
+ return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles32.stage, onLayout, children: [
6042
6178
  /* @__PURE__ */ jsxRuntime.jsx(
6043
6179
  CallParticipantTile,
6044
6180
  {
@@ -6048,7 +6184,7 @@ function CallVideoGrid({
6048
6184
  avatarSize: Math.min(148, Math.max(96, Math.round(size.width * 0.36))),
6049
6185
  bleed: true,
6050
6186
  hideName: others.length === 1,
6051
- style: styles31.fill
6187
+ style: styles32.fill
6052
6188
  }
6053
6189
  ),
6054
6190
  self && others.length === 1 && size.width > 0 && /* @__PURE__ */ jsxRuntime.jsx(
@@ -6066,7 +6202,7 @@ function CallVideoGrid({
6066
6202
  }
6067
6203
  const tiles = [...others, ...self ? [self] : []];
6068
6204
  const width = size.width > 0 ? (size.width - GAP * (columns - 1)) / columns : 0;
6069
- const grid = /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [styles31.grid, scrolls ? styles31.gridScrolling : styles31.gridFilling], children: tiles.map((participant) => /* @__PURE__ */ jsxRuntime.jsx(
6205
+ const grid = /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [styles32.grid, scrolls ? styles32.gridScrolling : styles32.gridFilling], children: tiles.map((participant) => /* @__PURE__ */ jsxRuntime.jsx(
6070
6206
  CallParticipantTile,
6071
6207
  {
6072
6208
  participant,
@@ -6083,13 +6219,13 @@ function CallVideoGrid({
6083
6219
  return /* @__PURE__ */ jsxRuntime.jsx(
6084
6220
  reactNative.View,
6085
6221
  {
6086
- style: [styles31.stage, { paddingTop: padTop, paddingBottom: padBottom }],
6222
+ style: [styles32.stage, { paddingTop: padTop, paddingBottom: padBottom }],
6087
6223
  onLayout,
6088
6224
  children: scrolls ? /* @__PURE__ */ jsxRuntime.jsx(
6089
6225
  reactNative.ScrollView,
6090
6226
  {
6091
6227
  contentContainerStyle: [
6092
- styles31.scroll,
6228
+ styles32.scroll,
6093
6229
  { paddingBottom: (chromeInsets?.bottom ?? 0) + GAP }
6094
6230
  ],
6095
6231
  showsVerticalScrollIndicator: false,
@@ -6099,7 +6235,7 @@ function CallVideoGrid({
6099
6235
  }
6100
6236
  );
6101
6237
  }
6102
- var styles31 = reactNative.StyleSheet.create({
6238
+ var styles32 = reactNative.StyleSheet.create({
6103
6239
  stage: { flex: 1, overflow: "hidden" },
6104
6240
  fill: { ...reactNative.StyleSheet.absoluteFillObject },
6105
6241
  grid: { flexDirection: "row", flexWrap: "wrap", gap: GAP },
@@ -6458,7 +6594,7 @@ function CallScreen({
6458
6594
  /* @__PURE__ */ jsxRuntime.jsx(reactNative.StatusBar, { barStyle: "light-content" }),
6459
6595
  /* @__PURE__ */ jsxRuntime.jsxs(reactNativeSafeAreaContext.SafeAreaProvider, { children: [
6460
6596
  /* @__PURE__ */ jsxRuntime.jsx(InsetsProbe, { onChange: setInsets }),
6461
- /* @__PURE__ */ jsxRuntime.jsxs(reactNative.Pressable, { style: styles32.screen, onPress: toggleChrome, accessible: false, children: [
6597
+ /* @__PURE__ */ jsxRuntime.jsxs(reactNative.Pressable, { style: styles33.screen, onPress: toggleChrome, accessible: false, children: [
6462
6598
  /* @__PURE__ */ jsxRuntime.jsx(CallBackdrop, {}),
6463
6599
  showStage ? /* @__PURE__ */ jsxRuntime.jsx(
6464
6600
  CallVideoGrid,
@@ -6477,10 +6613,10 @@ function CallScreen({
6477
6613
  /* @__PURE__ */ jsxRuntime.jsxs(
6478
6614
  reactNative.View,
6479
6615
  {
6480
- style: [styles32.identity, { paddingBottom: insets.bottom + 160 }],
6616
+ style: [styles33.identity, { paddingBottom: insets.bottom + 160 }],
6481
6617
  pointerEvents: "none",
6482
6618
  children: [
6483
- /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles32.avatarStage, children: [
6619
+ /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles33.avatarStage, children: [
6484
6620
  (ringingIn || ringingOut) && /* @__PURE__ */ jsxRuntime.jsx(PulseRings, { size: 132, color: callColors.glow }),
6485
6621
  /* @__PURE__ */ jsxRuntime.jsx(
6486
6622
  CallAvatar,
@@ -6491,31 +6627,31 @@ function CallScreen({
6491
6627
  }
6492
6628
  )
6493
6629
  ] }),
6494
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { numberOfLines: 2, style: styles32.identityTitle, children: title }),
6495
- /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles32.statusPill, children: [
6496
- connected && /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles32.statusDot }),
6497
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: styles32.statusText, children: subtitle })
6630
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { numberOfLines: 2, style: styles33.identityTitle, children: title }),
6631
+ /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles33.statusPill, children: [
6632
+ connected && /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles33.statusDot }),
6633
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: styles33.statusText, children: subtitle })
6498
6634
  ] })
6499
6635
  ]
6500
6636
  }
6501
6637
  )
6502
6638
  ),
6503
- chromeVisible && showStage && /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [styles32.header, { paddingTop: insets.top + 14 }], pointerEvents: "box-none", children: [
6504
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { numberOfLines: 1, style: styles32.title, children: title }),
6505
- /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles32.subtitleRow, children: [
6639
+ chromeVisible && showStage && /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [styles33.header, { paddingTop: insets.top + 14 }], pointerEvents: "box-none", children: [
6640
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { numberOfLines: 1, style: styles33.title, children: title }),
6641
+ /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles33.subtitleRow, children: [
6506
6642
  isGroup && /* @__PURE__ */ jsxRuntime.jsx(PoolseIcon, { name: "users", size: 14, color: callColors.textDim, label: null }),
6507
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: styles32.subtitle, children: isGroup ? `${participants.length} \xB7 ${subtitle}` : subtitle })
6643
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: styles33.subtitle, children: isGroup ? `${participants.length} \xB7 ${subtitle}` : subtitle })
6508
6644
  ] })
6509
6645
  ] }),
6510
6646
  chromeVisible && /* @__PURE__ */ jsxRuntime.jsxs(
6511
6647
  reactNative.View,
6512
6648
  {
6513
- style: [styles32.controls, { paddingBottom: insets.bottom + 22 }],
6649
+ style: [styles33.controls, { paddingBottom: insets.bottom + 22 }],
6514
6650
  pointerEvents: "box-none",
6515
6651
  children: [
6516
- error && /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: styles32.error, children: error.message }),
6517
- !meshAvailable && !livekit && /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: styles32.error, children: "No WebRTC module supplied \u2014 this call has no audio." }),
6518
- ringingIn ? /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles32.answerRow, children: [
6652
+ error && /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: styles33.error, children: error.message }),
6653
+ !meshAvailable && !livekit && /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: styles33.error, children: "No WebRTC module supplied \u2014 this call has no audio." }),
6654
+ ringingIn ? /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles33.answerRow, children: [
6519
6655
  /* @__PURE__ */ jsxRuntime.jsx(
6520
6656
  CallControlButton,
6521
6657
  {
@@ -6538,7 +6674,7 @@ function CallScreen({
6538
6674
  accessibilityLabel: "Accept call"
6539
6675
  }
6540
6676
  )
6541
- ] }) : ended ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles32.row, children: /* @__PURE__ */ jsxRuntime.jsx(
6677
+ ] }) : ended ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles33.row, children: /* @__PURE__ */ jsxRuntime.jsx(
6542
6678
  CallControlButton,
6543
6679
  {
6544
6680
  icon: "close",
@@ -6547,7 +6683,7 @@ function CallScreen({
6547
6683
  accessibilityLabel: "Close"
6548
6684
  }
6549
6685
  ) }) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
6550
- /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles32.dock, children: [
6686
+ /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles33.dock, children: [
6551
6687
  /* @__PURE__ */ jsxRuntime.jsx(
6552
6688
  CallControlButton,
6553
6689
  {
@@ -6588,7 +6724,7 @@ function CallScreen({
6588
6724
  }
6589
6725
  )
6590
6726
  ] }),
6591
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles32.hangUpRow, children: /* @__PURE__ */ jsxRuntime.jsx(
6727
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles33.hangUpRow, children: /* @__PURE__ */ jsxRuntime.jsx(
6592
6728
  CallControlButton,
6593
6729
  {
6594
6730
  icon: "phone-off",
@@ -6664,7 +6800,7 @@ function statusLine(calls, mediaStatus) {
6664
6800
  return "";
6665
6801
  }
6666
6802
  }
6667
- var styles32 = reactNative.StyleSheet.create({
6803
+ var styles33 = reactNative.StyleSheet.create({
6668
6804
  screen: { flex: 1, backgroundColor: callColors.bg },
6669
6805
  identity: {
6670
6806
  flex: 1,
@@ -6984,6 +7120,7 @@ exports.ConversationView = ConversationView;
6984
7120
  exports.DaySeparator = DaySeparator;
6985
7121
  exports.GroupDetailsSheet = GroupDetailsSheet;
6986
7122
  exports.ImageMosaic = ImageMosaic;
7123
+ exports.LiveCallBanner = LiveCallBanner;
6987
7124
  exports.LocalVideoPip = LocalVideoPip;
6988
7125
  exports.MemberList = MemberList;
6989
7126
  exports.MentionInput = MentionInput;