@poolse/react-native 2.0.7 → 2.0.9

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
@@ -1558,7 +1558,8 @@ function ReplyChip({
1558
1558
  onCancel
1559
1559
  }) {
1560
1560
  const theme = usePoolseTheme();
1561
- const senderName = message.sender_external_id ? labelFor?.(message.sender_external_id) ?? message.sender_external_id : "Unknown";
1561
+ const resolved = react$1.useUser(message.sender_external_id);
1562
+ const senderName = message.sender_external_id ? labelFor?.(message.sender_external_id) ?? resolved.profile?.displayName ?? message.sender_external_id : "Unknown";
1562
1563
  return /* @__PURE__ */ jsxRuntime.jsxs(
1563
1564
  reactNative.View,
1564
1565
  {
@@ -2523,7 +2524,8 @@ function QuotedCard({
2523
2524
  onPress
2524
2525
  }) {
2525
2526
  const theme = usePoolseTheme();
2526
- const senderName = quoted.sender_external_id ? labelFor?.(quoted.sender_external_id) ?? quoted.sender_external_id : "Unknown";
2527
+ const resolved = react$1.useUser(quoted.sender_external_id);
2528
+ const senderName = quoted.sender_external_id ? labelFor?.(quoted.sender_external_id) ?? resolved.profile?.displayName ?? quoted.sender_external_id : "Unknown";
2527
2529
  const bg = isSelf ? "rgba(255,255,255,0.18)" : theme.colors.surface2;
2528
2530
  const accent = isSelf ? theme.colors.onBrand : theme.colors.brand;
2529
2531
  const txt = isSelf ? theme.colors.onBrand : theme.colors.ink;