diff --git a/apps/mobile/src/features/chat/components/ChatMessages.tsx b/apps/mobile/src/features/chat/components/ChatMessages.tsx index 0b746a3..96a2415 100644 --- a/apps/mobile/src/features/chat/components/ChatMessages.tsx +++ b/apps/mobile/src/features/chat/components/ChatMessages.tsx @@ -56,6 +56,7 @@ export const ChatMessages: React.FC = ({ revealMessage={revealMessage} onImagePress={onImagePress} onVideoFullScreen={onVideoFullScreen} + onLongPress={() => onMessageLongPress(item, isMe)} /> ); diff --git a/apps/mobile/src/features/chat/components/MessageContent.tsx b/apps/mobile/src/features/chat/components/MessageContent.tsx index e298a7c..cbbe95d 100644 --- a/apps/mobile/src/features/chat/components/MessageContent.tsx +++ b/apps/mobile/src/features/chat/components/MessageContent.tsx @@ -24,6 +24,7 @@ export interface MessageContentProps { revealMessage: (id: string) => void; onImagePress: (uri: string) => void; onVideoFullScreen: (uri: string) => void; + onLongPress?: () => void; } export function MessageContent({ @@ -33,6 +34,7 @@ export function MessageContent({ revealMessage, onImagePress, onVideoFullScreen, + onLongPress, }: MessageContentProps) { // Check if message was deleted for everyone if (item.deleted_at) { @@ -304,7 +306,12 @@ export function MessageContent({ const renderText = () => { if (decryptErrorCode === 'E2EE_PENDING_RECIPIENT_KEY') { return ( - + @@ -327,7 +334,12 @@ export function MessageContent({ if (decryptError) { return ( - + Couldn’t open secure message • Tap to retry );