@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 +4 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -3
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useMe, useConversations,
|
|
1
|
+
import { useUser, useMe, useConversations, useAttachmentUpload, useConversation, useMembers, usePresence, useMessages, useTyping, useReactions, useThread, useAttachmentUrl, usePoolse } from '@poolse/react';
|
|
2
2
|
import { createContext, forwardRef, useRef, useState, useImperativeHandle, useEffect, useMemo, useCallback, useContext } from 'react';
|
|
3
3
|
import { StyleSheet, View, Pressable, TextInput, Text, useWindowDimensions, Animated, Easing, PanResponder, Image, ScrollView, ActivityIndicator, FlatList, KeyboardAvoidingView, Platform, Modal, Dimensions, AppState } from 'react-native';
|
|
4
4
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
@@ -1535,7 +1535,8 @@ function ReplyChip({
|
|
|
1535
1535
|
onCancel
|
|
1536
1536
|
}) {
|
|
1537
1537
|
const theme = usePoolseTheme();
|
|
1538
|
-
const
|
|
1538
|
+
const resolved = useUser(message.sender_external_id);
|
|
1539
|
+
const senderName = message.sender_external_id ? labelFor?.(message.sender_external_id) ?? resolved.profile?.displayName ?? message.sender_external_id : "Unknown";
|
|
1539
1540
|
return /* @__PURE__ */ jsxs(
|
|
1540
1541
|
View,
|
|
1541
1542
|
{
|
|
@@ -2500,7 +2501,8 @@ function QuotedCard({
|
|
|
2500
2501
|
onPress
|
|
2501
2502
|
}) {
|
|
2502
2503
|
const theme = usePoolseTheme();
|
|
2503
|
-
const
|
|
2504
|
+
const resolved = useUser(quoted.sender_external_id);
|
|
2505
|
+
const senderName = quoted.sender_external_id ? labelFor?.(quoted.sender_external_id) ?? resolved.profile?.displayName ?? quoted.sender_external_id : "Unknown";
|
|
2504
2506
|
const bg = isSelf ? "rgba(255,255,255,0.18)" : theme.colors.surface2;
|
|
2505
2507
|
const accent = isSelf ? theme.colors.onBrand : theme.colors.brand;
|
|
2506
2508
|
const txt = isSelf ? theme.colors.onBrand : theme.colors.ink;
|