mirror of
https://github.com/jjbrunton/Sauci.git
synced 2026-10-31 18:19:43 +00:00
Implement E2EE and message content moderation
This commit is contained in:
1 parent
e1ff87dc03
commit
198cd80dfd
74 files changed
+12939
-2178
No files matched your search
@@ -22,6 +22,8 @@ interface ChatMessagesProps {
|
||||
onImagePress: (uri: string) => void;
|
||||
onVideoFullScreen: (uri: string) => void;
|
||||
revealMessage: (messageId: string) => void;
|
||||
/** Called when a message bubble is long pressed */
|
||||
onMessageLongPress: (message: Message, isMe: boolean) => void;
|
||||
}
|
||||
|
||||
const ACCENT = colors.premium.gold;
|
||||
@@ -35,16 +37,22 @@ export const ChatMessages: React.FC<ChatMessagesProps> = ({
|
||||
onImagePress,
|
||||
onVideoFullScreen,
|
||||
revealMessage,
|
||||
onMessageLongPress,
|
||||
}) => {
|
||||
const flatListRef = useRef<FlatList>(null);
|
||||
|
||||
const renderMessage = ({ item, index }: { item: Message; index: number }) => {
|
||||
const isMe = item.user_id === userId;
|
||||
return (
|
||||
<MessageBubble isMe={isMe} index={index}>
|
||||
<MessageBubble
|
||||
isMe={isMe}
|
||||
index={index}
|
||||
onLongPress={() => onMessageLongPress(item, isMe)}
|
||||
>
|
||||
<MessageContent
|
||||
item={item}
|
||||
isMe={isMe}
|
||||
currentUserId={userId || ''}
|
||||
revealMessage={revealMessage}
|
||||
onImagePress={onImagePress}
|
||||
onVideoFullScreen={onVideoFullScreen}
|
||||
|
||||
Reference in new issue
Block a user