diff --git a/app/containers/message/Message.tsx b/app/containers/message/Message.tsx index 1eedf3b9df..f8dfc0f734 100644 --- a/app/containers/message/Message.tsx +++ b/app/containers/message/Message.tsx @@ -31,6 +31,7 @@ import translationLanguages from '../../lib/constants/translationLanguages'; const MessageInner = React.memo((props: IMessageInner) => { const { isLargeFontScale } = useResponsiveLayout(); const showTimeLarge = isLargeFontScale && props.isHeader; + const hasLinkedQuote = props.attachments?.some(file => !!file?.message_link) ?? false; let content; if (props.isPreview) { @@ -39,8 +40,17 @@ const MessageInner = React.memo((props: IMessageInner) => { {showTimeLarge ? : null} <> - - + {hasLinkedQuote ? ( + <> + + + + ) : ( + <> + + + + )} @@ -87,8 +97,17 @@ const MessageInner = React.memo((props: IMessageInner) => { {showTimeLarge ? : null} - - + {hasLinkedQuote ? ( + <> + + + + ) : ( + <> + + + + )} @@ -158,6 +177,7 @@ const Message = React.memo((props: IMessageTouchable & IMessage) => { const thread = props.isThreadReply ? : null; // Prevent misalignment of info when the font size is increased. const infoStyle: ViewStyle = props.isInfo ? { alignItems: 'center' } : {}; + const hasLinkedQuote = props.attachments?.some(file => !!file?.message_link) ?? false; return ( {thread} @@ -169,7 +189,17 @@ const Message = React.memo((props: IMessageTouchable & IMessage) => { accessibilityLanguage={props.autoTranslateLanguage} index={2}> - + {hasLinkedQuote ? ( + <> + + + + ) : ( + <> + + + + )} {props.isInfo && props.type === 'message_pinned' ? ( diff --git a/ios/Podfile.lock b/ios/Podfile.lock index b443f1d65a..95ecf7f2e5 100644 --- a/ios/Podfile.lock +++ b/ios/Podfile.lock @@ -3197,9 +3197,9 @@ SPEC CHECKSUMS: SocketRocket: d4aabe649be1e368d1318fdf28a022d714d65748 TOCropViewController: 80b8985ad794298fb69d3341de183f33d1853654 WatermelonDB: 4c846c8cb94eef3cba90fa034d15310163226703 - Yoga: dfabf1234ccd5ac41d1b1d43179f024366ae9831 + Yoga: 2a3a4c38a8441b6359d5e5914d35db7b2b67aebd ZXingObjC: 8898711ab495761b2dbbdec76d90164a6d7e14c5 PODFILE CHECKSUM: 4c73563b34520b90c036817cdb9ccf65fea5f5c5 -COCOAPODS: 1.15.2 +COCOAPODS: 1.16.2 diff --git a/ios/RocketChatRN.xcodeproj/project.pbxproj b/ios/RocketChatRN.xcodeproj/project.pbxproj index 7f679cbc22..78155a9940 100644 --- a/ios/RocketChatRN.xcodeproj/project.pbxproj +++ b/ios/RocketChatRN.xcodeproj/project.pbxproj @@ -1734,7 +1734,7 @@ inputFileListPaths = ( ); inputPaths = ( - "$TARGET_BUILD_DIR/$INFOPLIST_PATH", + $TARGET_BUILD_DIR/$INFOPLIST_PATH, ); name = "Upload source maps to Bugsnag"; outputFileListPaths = ( @@ -1820,7 +1820,7 @@ inputFileListPaths = ( ); inputPaths = ( - "$TARGET_BUILD_DIR/$INFOPLIST_PATH", + $TARGET_BUILD_DIR/$INFOPLIST_PATH, ); name = "Upload source maps to Bugsnag"; outputFileListPaths = ( @@ -2602,7 +2602,7 @@ "$(inherited)", "$(SRCROOT)/../node_modules/rn-extensions-share/ios/**", "$(SRCROOT)/../node_modules/react-native-firebase/ios/RNFirebase/**", - "$PODS_CONFIGURATION_BUILD_DIR/Firebase", + $PODS_CONFIGURATION_BUILD_DIR/Firebase, "$(SRCROOT)/../node_modules/react-native-mmkv-storage/ios/**", ); INFOPLIST_FILE = ShareRocketChatRN/Info.plist; @@ -2679,7 +2679,7 @@ "$(inherited)", "$(SRCROOT)/../node_modules/rn-extensions-share/ios/**", "$(SRCROOT)/../node_modules/react-native-firebase/ios/RNFirebase/**", - "$PODS_CONFIGURATION_BUILD_DIR/Firebase", + $PODS_CONFIGURATION_BUILD_DIR/Firebase, "$(SRCROOT)/../node_modules/react-native-mmkv-storage/ios/**", ); INFOPLIST_FILE = ShareRocketChatRN/Info.plist;