From 2d2fc5002e4a8e9396955f4140a1fe07081a32e1 Mon Sep 17 00:00:00 2001 From: OtavioStasiak Date: Thu, 29 Jan 2026 20:11:27 -0300 Subject: [PATCH 1/8] fix: collapsible attachment with text duplicating the content --- .../message/Components/Attachments/Quote.tsx | 2 ++ app/containers/message/Message.stories.tsx | 28 +++++++++++++++++++ 2 files changed, 30 insertions(+) diff --git a/app/containers/message/Components/Attachments/Quote.tsx b/app/containers/message/Components/Attachments/Quote.tsx index 7510000367e..0ebbd59f9d7 100644 --- a/app/containers/message/Components/Attachments/Quote.tsx +++ b/app/containers/message/Components/Attachments/Quote.tsx @@ -11,6 +11,8 @@ import { getMessageFromAttachment } from '../../utils'; const isQuoteAttachment = (file?: IAttachment): boolean => { if (!file) return false; + if (file.collapsed) return false; + if (!file.color && !file.text && (file.image_url || file.audio_url || file.video_url || file.collapsed)) { return false; } diff --git a/app/containers/message/Message.stories.tsx b/app/containers/message/Message.stories.tsx index 1f15cea13c4..fd7ccfe6b1f 100644 --- a/app/containers/message/Message.stories.tsx +++ b/app/containers/message/Message.stories.tsx @@ -2191,6 +2191,20 @@ const collapsedAttachments = { } ] }; + +const collapsibleAttachmentWithText = { + collapsed: true, + title: 'Collapsed attachment block', + text: 'This attachment text should NOT appear as plain text above the message or duplicate before the block.', + description: 'Attachment description that might also leak as duplicate plain text.', + color: '#2c3e50', + fields: [ + { title: 'Field 1', value: 'Value 1', short: true }, + { title: 'Field 2', value: 'Value 2', short: true }, + { title: 'Long field', value: 'This field value could also contribute to duplicate text when expanded.', short: false } + ] +}; + export const CollapsedAttachments = () => ( <> @@ -2207,6 +2221,20 @@ export const CollapsedAttachmentsLargeFont = () => ( ); +export const CollapsibleAttachmentWithText = () => ( + <> + + + +); + +export const CollapsibleAttachmentWithTextLargeFont = () => ( + <> + + + +); + const attachmentWithTextAndLink = [ { title: 'Rocket.Chat', From 2441cc249e98f0cb9ec853a7ec483c11d43e3e2d Mon Sep 17 00:00:00 2001 From: OtavioStasiak Date: Tue, 3 Feb 2026 18:33:21 -0300 Subject: [PATCH 2/8] fix: ktex breaking the app --- app/containers/markdown/components/Katex.tsx | 27 +++++++++++++++----- app/containers/message/Message.stories.tsx | 19 ++++++++++++++ 2 files changed, 40 insertions(+), 6 deletions(-) diff --git a/app/containers/markdown/components/Katex.tsx b/app/containers/markdown/components/Katex.tsx index c0aac0860a7..0bbd92fdb0e 100644 --- a/app/containers/markdown/components/Katex.tsx +++ b/app/containers/markdown/components/Katex.tsx @@ -3,7 +3,7 @@ import React from 'react'; import { type StyleProp, type ViewStyle } from 'react-native'; import Katex from 'react-native-katex'; // eslint-disable-next-line import/no-unresolved -import MathView, { MathText } from 'react-native-math-view'; +import MathView from 'react-native-math-view'; import { isAndroid } from '../../../lib/methods/helpers/deviceInfo'; import { useTheme } from '../../../theme'; @@ -13,21 +13,36 @@ interface IKaTeXProps { value: KaTeXProps['value']; } +const BLOCK_ENV_PATTERN = /\\begin\s*\{\s*(array|matrix|pmatrix|bmatrix|Bmatrix|vmatrix|Vmatrix)\s*\}/; + export const KaTeX = ({ value }: IKaTeXProps): React.ReactElement | null => { const { colors } = useTheme(); const fixAndroidWebviewCrashStyle: StyleProp = isAndroid ? { opacity: 0.99, overflow: 'hidden' } : {}; + // KaTeX array does not render correctly in MathView (shows gray box). + // MathView does not throw, so renderError is never triggered. + if (BLOCK_ENV_PATTERN.test(value)) { + return + + } + return ( ( - + )} /> ); }; -export const InlineKaTeX = ({ value }: IKaTeXProps): React.ReactElement | null => { - const { colors } = useTheme(); - return ; -}; + diff --git a/app/containers/message/Message.stories.tsx b/app/containers/message/Message.stories.tsx index fd7ccfe6b1f..16d1f569c66 100644 --- a/app/containers/message/Message.stories.tsx +++ b/app/containers/message/Message.stories.tsx @@ -2266,6 +2266,25 @@ export const Katex = () => ( ); export const KatexLargeFont = () => ; +const katexArray = { + msg: '\\begin{array}{|c|c|c|c|c|c|} \\hline \\text{...} & \\text{...} \\\\ \\hline \\end{array}', + md: [ + { + type: 'KATEX', + value: + ' \\begin{array}{|c|c|c|c|c|c|} \\hline \\text{testing} & \\text{testingII} & \\text{testing III} & \\text{testing IV} & \\text{testV} & \\text{testVI} \\\\ \\hline \\text{TEST} & \\text{TEST} & \\text{TEST} & \\text{TEST} & \\text{TEST} & \\text{TEST} \\\\ \\hline\\text{TEST} & \\text{✅} & \\text{test} & \\text{test} & \\text{test} & \\text{✅} \\\\ \\hline \\end{array} ' + } + ] +}; + +export const KatexArray = () => ( + <> + + +); + +export const KatexArrayLargeFont = () => ; + const inlineKatex = { msg: '\\(xˆ2 + yˆ2 - zˆ2\\)', md: [ From ae29e45c6019e5158dfe948e06c7e4d19604a7e1 Mon Sep 17 00:00:00 2001 From: OtavioStasiak Date: Tue, 3 Feb 2026 18:33:54 -0300 Subject: [PATCH 3/8] fix: snapshot test --- .../__snapshots__/Message.test.tsx.snap | 28946 +++++++++------- 1 file changed, 16168 insertions(+), 12778 deletions(-) diff --git a/app/containers/message/__snapshots__/Message.test.tsx.snap b/app/containers/message/__snapshots__/Message.test.tsx.snap index 5441ced7633..53d95734b79 100644 --- a/app/containers/message/__snapshots__/Message.test.tsx.snap +++ b/app/containers/message/__snapshots__/Message.test.tsx.snap @@ -10537,7 +10537,7 @@ exports[`Story Snapshots: CollapsedAttachmentsLargeFont should match snapshot 1` `; -exports[`Story Snapshots: ColoredAttachments should match snapshot 1`] = ` +exports[`Story Snapshots: CollapsibleAttachmentWithText should match snapshot 1`] = ` + + + + + + + This is the main message body. + + + + + + + + + + + + Collapsed attachment block + + + + + +  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diego.mello + + + 10:00 AM + + + + - - - - Field 1 - - - - - - Value 1 - - - - - - + + + - Field 2 - - - - - Value 2 - - + This attachment text should NOT appear as plain text above the message or duplicate before the block. - - + + - - - - - - - - - - - - - - - - - - - - - - - Field 1 - - - - - - Value 1 - - - - - - Field 2 + Long field - Value 2 + This field value could also contribute to duplicate text when expanded. @@ -11644,38 +11782,152 @@ exports[`Story Snapshots: ColoredAttachments should match snapshot 1`] = ` + + + + + Attachment description that might also leak as duplicate plain text. + + + + - - - - - - - - - - - -`; - -exports[`Story Snapshots: ColoredAttachmentsLargeFont should match snapshot 1`] = ` - - - - + + + + + This is the main message body. + + + + + + + + + + + + + + + + +`; + +exports[`Story Snapshots: CollapsibleAttachmentWithTextLargeFont should match snapshot 1`] = ` + + + + - - - - - - - - Field 1 - - - - - - Value 1 - - - - - - - - Field 2 - - - - - - Value 2 - - - - - - - - - + "color": "#2F343D", + }, + ] + } + > + This is the main message body. + + + + + - - - - - Field 1 - - - - - - Value 1 - - - - - - - - Field 2 - - - - - - Value 2 - - - - - - + Collapsed attachment block + - - - - - - - - - - Field 1 - - - - - - Value 1 - - - - - - - - Field 2 - - - - - - Value 2 - - - - - - - + "fontFamily": "custom", + "fontStyle": "normal", + "fontWeight": "normal", + }, + {}, + ] + } + > +  + @@ -12777,27 +12429,14 @@ exports[`Story Snapshots: ColoredAttachmentsLargeFont should match snapshot 1`] - - -`; - -exports[`Story Snapshots: CustomFields should match snapshot 1`] = ` - - @@ -12877,8 +12516,8 @@ exports[`Story Snapshots: CustomFields should match snapshot 1`] = ` [ { "borderRadius": 4, - "height": 36, - "width": 36, + "height": 46.800000000000004, + "width": 46.800000000000004, }, { "marginTop": 4, @@ -12932,7 +12571,7 @@ exports[`Story Snapshots: CustomFields should match snapshot 1`] = ` "top": "50%", } } - height={36} + height={46.800000000000004} nativeViewRef={"[React.ref]"} onError={[Function]} onLoad={[Function]} @@ -12946,19 +12585,19 @@ exports[`Story Snapshots: CustomFields should match snapshot 1`] = ` "headers": { "User-Agent": "RC Mobile; ios unknown; vunknown (unknown)", }, - "uri": "https://open.rocket.chat/avatar/diego.mello?format=png&size=72", + "uri": "https://open.rocket.chat/avatar/diego.mello?format=png&size=93.60000000000001", }, ] } style={ { "borderRadius": 4, - "height": 36, - "width": 36, + "height": 46.800000000000004, + "width": 46.800000000000004, } } transition={null} - width={36} + width={46.800000000000004} /> @@ -13049,25 +12688,6 @@ exports[`Story Snapshots: CustomFields should match snapshot 1`] = ` > diego.mello - - 10:00 AM - - - + 10:00 AM + + + @@ -13130,14 +12769,14 @@ exports[`Story Snapshots: CustomFields should match snapshot 1`] = ` { "alignItems": "center", "alignSelf": "flex-start", - "borderColor": "#CBCED1", + "borderColor": "#2c3e50", "borderLeftWidth": 2, "flex": 1, "flexDirection": "row", "opacity": 1, } } - testID="reply-rocket.cat-Custom fields" + testID="reply-undefined-This attachment text should NOT appear as plain text above the message or duplicate before the block." > - rocket.cat + Collapsed attachment block - Custom fields + This attachment text should NOT appear as plain text above the message or duplicate before the block. @@ -13428,14 +13066,155 @@ exports[`Story Snapshots: CustomFields should match snapshot 1`] = ` + + + Long field + + + + + + This field value could also contribute to duplicate text when expanded. + + + + + + + + + + Attachment description that might also leak as duplicate plain text. + + + + - Message + This is the main message body. @@ -13502,14 +13281,27 @@ exports[`Story Snapshots: CustomFields should match snapshot 1`] = ` + + +`; + +exports[`Story Snapshots: ColoredAttachments should match snapshot 1`] = ` + + - - rocket.cat - - - - - - - Custom fields - - - - + /> + + + + + + + + + + + - Field 3 + Field 1 - Value 3 + Value 1 @@ -14233,7 +14043,7 @@ exports[`Story Snapshots: CustomFields should match snapshot 1`] = ` "flexDirection": "column", }, { - "width": "100%", + "width": "50%", }, ] } @@ -14254,7 +14064,7 @@ exports[`Story Snapshots: CustomFields should match snapshot 1`] = ` ] } > - Field 4 + Field 2 - Value 4 + Value 2 + + + + + + + + + + + - Field 5 + Field 1 - Value 5 + Value 1 + + + + + + + + Field 2 + + + + + + Value 2 @@ -14404,65 +14394,6 @@ exports[`Story Snapshots: CustomFields should match snapshot 1`] = ` - - - - - - Message - - - - - @@ -14476,7 +14407,7 @@ exports[`Story Snapshots: CustomFields should match snapshot 1`] = ` `; -exports[`Story Snapshots: CustomFieldsLargeFont should match snapshot 1`] = ` +exports[`Story Snapshots: ColoredAttachmentsLargeFont should match snapshot 1`] = ` - - rocket.cat - - - - - - - Custom fields - - - - + /> - - - - - - - Message - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diego.mello - - - - - - 10:00 AM - - - - - rocket.cat - - + /> - - - - Custom fields - - - - - - - + + + + + + + + + - - Field 3 - - - - - - Value 3 - - - - - + } + /> + - Field 4 + Field 1 - Value 4 + Value 1 @@ -16014,7 +15431,7 @@ exports[`Story Snapshots: CustomFieldsLargeFont should match snapshot 1`] = ` "flexDirection": "column", }, { - "width": "100%", + "width": "50%", }, ] } @@ -16035,7 +15452,7 @@ exports[`Story Snapshots: CustomFieldsLargeFont should match snapshot 1`] = ` ] } > - Field 5 + Field 2 - Value 5 + Value 2 @@ -16099,65 +15516,6 @@ exports[`Story Snapshots: CustomFieldsLargeFont should match snapshot 1`] = ` - - - - - - Message - - - - - @@ -16171,7 +15529,7 @@ exports[`Story Snapshots: CustomFieldsLargeFont should match snapshot 1`] = ` `; -exports[`Story Snapshots: DateAndUnreadSeparators should match snapshot 1`] = ` +exports[`Story Snapshots: CustomFields should match snapshot 1`] = ` - rocket.cat + diego.mello + + + + + + + rocket.cat + + + + + + + Custom fields + + + + + + + + Field 1 + + + + + + Value 1 + + + + + + + + Field 2 + + + + + + Value 2 + + + + + + + + + + + + - Fourth message + Message @@ -16542,68 +16250,6 @@ exports[`Story Snapshots: DateAndUnreadSeparators should match snapshot 1`] = ` - - - unread - - - - November 10, 2017 - - @@ -16649,7 +16295,7 @@ exports[`Story Snapshots: DateAndUnreadSeparators should match snapshot 1`] = ` } > - - - + + + rocket.cat + + + + + + + Custom fields + + + + + + + + Field 1 + + + + + + Value 1 + + + + + + + + Field 2 + + + + + + Value 2 + + + + + + + + Field 3 + + + + + + Value 3 + + + + + + + + Field 4 + + + + + + Value 4 + + + + + + + + Field 5 + + + + + + Value 5 + + + + + + + + + + + + + + + + + Message + + + + + + + + + + + + + + + + +`; + +exports[`Story Snapshots: CustomFieldsLargeFont should match snapshot 1`] = ` + + + + + + + + + + + + + + + + + + + + + diego.mello + + + + + + 10:00 AM + + + + + + + + + + rocket.cat + + + + + + + Custom fields + + + + + + + + Field 1 + + + + + + Value 1 + + + + + + + + Field 2 + + + + + + Value 2 + + + + + + + + + + + + + + + + + Message + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diego.mello + + + + + + 10:00 AM + + + + + + + + + + rocket.cat + + + + + + + Custom fields + + + + + + + + Field 1 + + + + + + Value 1 + + + + + + + + Field 2 + + + + + + Value 2 + + + + + + + + Field 3 + + + + + + Value 3 + + + + + + + + Field 4 + + + + + + Value 4 + + + + + + + + Field 5 + + + + + + Value 5 + + + + + + + + + + + + + + + + + Message + + + + + + + + + + + + + + + + +`; + +exports[`Story Snapshots: DateAndUnreadSeparators should match snapshot 1`] = ` + + + + + + + + + + + + + + + + + + + + + rocket.cat + + + 10:00 AM + + + + + + + + + + + Fourth message + + + + + + + + + + + + + + + + + unread + + + + November 10, 2017 + + + + + + + + + + + + + + + + + + + + + diego.mello + + + 10:00 AM + + + + + + + + + + + Third message + + + + + + + + + + + + + + + + + unread + + + + + + + + + + + + + + + + + + - Third message + Second message + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + rocket.cat + + + 10:00 AM + + + + + + + + + + + Second message @@ -16975,6 +20308,19 @@ exports[`Story Snapshots: DateAndUnreadSeparators should match snapshot 1`] = ` } } > + - unread + November 10, 2017 - - - - - - - - - - - - - - - Second message - - - - - - - - - - - - - - - - - rocket.cat + diego.mello - Second message + First message @@ -17551,71 +20718,27 @@ exports[`Story Snapshots: DateAndUnreadSeparators should match snapshot 1`] = ` - - - - November 10, 2017 - - - + + +`; + +exports[`Story Snapshots: DateAndUnreadSeparatorsLargeFont should match snapshot 1`] = ` + + @@ -17695,8 +20818,8 @@ exports[`Story Snapshots: DateAndUnreadSeparators should match snapshot 1`] = ` [ { "borderRadius": 4, - "height": 36, - "width": 36, + "height": 46.800000000000004, + "width": 46.800000000000004, }, { "marginTop": 4, @@ -17706,7 +20829,7 @@ exports[`Story Snapshots: DateAndUnreadSeparators should match snapshot 1`] = ` testID="avatar" > @@ -17844,7 +20967,7 @@ exports[`Story Snapshots: DateAndUnreadSeparators should match snapshot 1`] = ` "opacity": 1, } } - testID="username-header-diego.mello" + testID="username-header-rocket.cat" > - diego.mello - - - 10:00 AM + rocket.cat + + 10:00 AM + - First message + Fourth message @@ -17970,27 +21093,76 @@ exports[`Story Snapshots: DateAndUnreadSeparators should match snapshot 1`] = ` - - -`; - -exports[`Story Snapshots: DateAndUnreadSeparatorsLargeFont should match snapshot 1`] = ` - - + + + unread + + + + November 10, 2017 + + - rocket.cat + diego.mello - Fourth message + Third message @@ -18367,6 +21539,9 @@ exports[`Story Snapshots: DateAndUnreadSeparatorsLargeFont should match snapshot { "color": "#D40C26", }, + { + "marginRight": 14, + }, ] } > @@ -18382,39 +21557,197 @@ exports[`Story Snapshots: DateAndUnreadSeparatorsLargeFont should match snapshot { "backgroundColor": "#EC0D2A", }, - { - "marginHorizontal": 14, - }, ] } /> - + + + - November 10, 2017 - - + "max": undefined, + "min": undefined, + "now": undefined, + "text": undefined, + } + } + accessible={true} + collapsable={false} + focusable={true} + onClick={[Function]} + onResponderGrant={[Function]} + onResponderMove={[Function]} + onResponderRelease={[Function]} + onResponderTerminate={[Function]} + onResponderTerminationRequest={[Function]} + onStartShouldSetResponder={[Function]} + style={ + { + "backgroundColor": undefined, + "opacity": 1, + } + } + > + + + + + + + + + + + + + Second message + + + + + + + + + + + + + + + - diego.mello + rocket.cat - Third message + Second message @@ -18778,6 +22111,19 @@ exports[`Story Snapshots: DateAndUnreadSeparatorsLargeFont should match snapshot } } > + - unread + November 10, 2017 - - - - - - - - - - - - - - - Second message - - - - - - - - - - - - - - - - - rocket.cat + diego.mello - Second message + First message @@ -19354,71 +22521,27 @@ exports[`Story Snapshots: DateAndUnreadSeparatorsLargeFont should match snapshot - - - - November 10, 2017 - - - + + +`; + +exports[`Story Snapshots: Discussion should match snapshot 1`] = ` + + @@ -19498,8 +22621,8 @@ exports[`Story Snapshots: DateAndUnreadSeparatorsLargeFont should match snapshot [ { "borderRadius": 4, - "height": 46.800000000000004, - "width": 46.800000000000004, + "height": 36, + "width": 36, }, { "marginTop": 4, @@ -19553,7 +22676,7 @@ exports[`Story Snapshots: DateAndUnreadSeparatorsLargeFont should match snapshot "top": "50%", } } - height={46.800000000000004} + height={36} nativeViewRef={"[React.ref]"} onError={[Function]} onLoad={[Function]} @@ -19567,19 +22690,19 @@ exports[`Story Snapshots: DateAndUnreadSeparatorsLargeFont should match snapshot "headers": { "User-Agent": "RC Mobile; ios unknown; vunknown (unknown)", }, - "uri": "https://open.rocket.chat/avatar/diego.mello?format=png&size=93.60000000000001", + "uri": "https://open.rocket.chat/avatar/diego.mello?format=png&size=72", }, ] } style={ { "borderRadius": 4, - "height": 46.800000000000004, - "width": 46.800000000000004, + "height": 36, + "width": 36, } } transition={null} - width={46.800000000000004} + width={36} /> @@ -19670,6 +22793,25 @@ exports[`Story Snapshots: DateAndUnreadSeparatorsLargeFont should match snapshot > diego.mello + + 10:00 AM + - - 10:00 AM - + + Started a discussion: + + + This is a discussion + - - - First message - + undefined, + ], + { + "fontFamily": "custom", + "fontStyle": "normal", + "fontWeight": "normal", + }, + {}, + ] + } + > +  - + + No messages yet + + + @@ -19773,27 +23012,14 @@ exports[`Story Snapshots: DateAndUnreadSeparatorsLargeFont should match snapshot - - -`; - -exports[`Story Snapshots: Discussion should match snapshot 1`] = ` - - - No messages yet + 1 message @@ -20253,7 +23479,9 @@ exports[`Story Snapshots: Discussion should match snapshot 1`] = ` }, ] } - /> + > + November 10, 2017 + @@ -20265,13 +23493,13 @@ exports[`Story Snapshots: Discussion should match snapshot 1`] = ` - This is a discussion + Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. - 1 message + 10 messages @@ -20745,13 +23973,13 @@ exports[`Story Snapshots: Discussion should match snapshot 1`] = ` - Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. + This is a discussion - 10 messages + +999 messages @@ -21224,14 +24452,27 @@ exports[`Story Snapshots: Discussion should match snapshot 1`] = ` + + +`; + +exports[`Story Snapshots: DiscussionLargeFont should match snapshot 1`] = ` + + @@ -21311,8 +24552,8 @@ exports[`Story Snapshots: Discussion should match snapshot 1`] = ` [ { "borderRadius": 4, - "height": 36, - "width": 36, + "height": 46.800000000000004, + "width": 46.800000000000004, }, { "marginTop": 4, @@ -21366,7 +24607,7 @@ exports[`Story Snapshots: Discussion should match snapshot 1`] = ` "top": "50%", } } - height={36} + height={46.800000000000004} nativeViewRef={"[React.ref]"} onError={[Function]} onLoad={[Function]} @@ -21380,19 +24621,19 @@ exports[`Story Snapshots: Discussion should match snapshot 1`] = ` "headers": { "User-Agent": "RC Mobile; ios unknown; vunknown (unknown)", }, - "uri": "https://open.rocket.chat/avatar/diego.mello?format=png&size=72", + "uri": "https://open.rocket.chat/avatar/diego.mello?format=png&size=93.60000000000001", }, ] } style={ { "borderRadius": 4, - "height": 36, - "width": 36, + "height": 46.800000000000004, + "width": 46.800000000000004, } } transition={null} - width={36} + width={46.800000000000004} /> @@ -21483,25 +24724,6 @@ exports[`Story Snapshots: Discussion should match snapshot 1`] = ` > diego.mello - - 10:00 AM - + + 10:00 AM + - +999 messages + No messages yet @@ -21691,9 +24932,7 @@ exports[`Story Snapshots: Discussion should match snapshot 1`] = ` }, ] } - > - November 10, 2017 - + /> @@ -21704,27 +24943,14 @@ exports[`Story Snapshots: Discussion should match snapshot 1`] = ` - - -`; - -exports[`Story Snapshots: DiscussionLargeFont should match snapshot 1`] = ` - - - No messages yet + 1 message @@ -22184,7 +25410,9 @@ exports[`Story Snapshots: DiscussionLargeFont should match snapshot 1`] = ` }, ] } - /> + > + November 10, 2017 + @@ -22196,13 +25424,13 @@ exports[`Story Snapshots: DiscussionLargeFont should match snapshot 1`] = ` - This is a discussion + Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. - 1 message + 10 messages @@ -22676,13 +25904,13 @@ exports[`Story Snapshots: DiscussionLargeFont should match snapshot 1`] = ` - Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. + This is a discussion - 10 messages + +999 messages @@ -23155,14 +26383,27 @@ exports[`Story Snapshots: DiscussionLargeFont should match snapshot 1`] = ` + + +`; + +exports[`Story Snapshots: Edited should match snapshot 1`] = ` + + @@ -23242,8 +26483,8 @@ exports[`Story Snapshots: DiscussionLargeFont should match snapshot 1`] = ` [ { "borderRadius": 4, - "height": 46.800000000000004, - "width": 46.800000000000004, + "height": 36, + "width": 36, }, { "marginTop": 4, @@ -23297,7 +26538,7 @@ exports[`Story Snapshots: DiscussionLargeFont should match snapshot 1`] = ` "top": "50%", } } - height={46.800000000000004} + height={36} nativeViewRef={"[React.ref]"} onError={[Function]} onLoad={[Function]} @@ -23311,19 +26552,19 @@ exports[`Story Snapshots: DiscussionLargeFont should match snapshot 1`] = ` "headers": { "User-Agent": "RC Mobile; ios unknown; vunknown (unknown)", }, - "uri": "https://open.rocket.chat/avatar/diego.mello?format=png&size=93.60000000000001", + "uri": "https://open.rocket.chat/avatar/diego.mello?format=png&size=72", }, ] } style={ { "borderRadius": 4, - "height": 46.800000000000004, - "width": 46.800000000000004, + "height": 36, + "width": 36, } } transition={null} - width={46.800000000000004} + width={36} /> @@ -23414,6 +26655,25 @@ exports[`Story Snapshots: DiscussionLargeFont should match snapshot 1`] = ` > diego.mello + + 10:00 AM + + > + + +  + + + - - 10:00 AM - - - Started a discussion: - - - This is a discussion - - + -  + { + "color": "#2F343D", + }, + ] + } + > + Message header + + + + + + + + + + + + + + + + + + + + + + + + + + - +999 messages + + Message without header + - - - - November 10, 2017 - + + + + + +  + + + @@ -23639,7 +27013,7 @@ exports[`Story Snapshots: DiscussionLargeFont should match snapshot 1`] = ` `; -exports[`Story Snapshots: Edited should match snapshot 1`] = ` +exports[`Story Snapshots: EditedLargeFont should match snapshot 1`] = ` @@ -23735,8 +27109,8 @@ exports[`Story Snapshots: Edited should match snapshot 1`] = ` [ { "borderRadius": 4, - "height": 36, - "width": 36, + "height": 46.800000000000004, + "width": 46.800000000000004, }, { "marginTop": 4, @@ -23790,7 +27164,7 @@ exports[`Story Snapshots: Edited should match snapshot 1`] = ` "top": "50%", } } - height={36} + height={46.800000000000004} nativeViewRef={"[React.ref]"} onError={[Function]} onLoad={[Function]} @@ -23804,19 +27178,19 @@ exports[`Story Snapshots: Edited should match snapshot 1`] = ` "headers": { "User-Agent": "RC Mobile; ios unknown; vunknown (unknown)", }, - "uri": "https://open.rocket.chat/avatar/diego.mello?format=png&size=72", + "uri": "https://open.rocket.chat/avatar/diego.mello?format=png&size=93.60000000000001", }, ] } style={ { "borderRadius": 4, - "height": 36, - "width": 36, + "height": 46.800000000000004, + "width": 46.800000000000004, } } transition={null} - width={36} + width={46.800000000000004} /> @@ -23907,25 +27281,6 @@ exports[`Story Snapshots: Edited should match snapshot 1`] = ` > diego.mello - - 10:00 AM - + + 10:00 AM + @@ -24234,11 +27608,11 @@ exports[`Story Snapshots: Edited should match snapshot 1`] = ` [ { "color": "#2F343D", - "fontSize": 16, + "fontSize": 20.8, }, [ { - "lineHeight": 16, + "lineHeight": 20.8, }, undefined, ], @@ -24265,7 +27639,7 @@ exports[`Story Snapshots: Edited should match snapshot 1`] = ` `; -exports[`Story Snapshots: EditedLargeFont should match snapshot 1`] = ` +exports[`Story Snapshots: Editing should match snapshot 1`] = ` + + + + + + + + + + + + + + diego.mello + + + 10:00 AM + + + + + + + + + + + Message being edited + + + + + + + + + + + + + + + + +`; + +exports[`Story Snapshots: EditingLargeFont should match snapshot 1`] = ` + + + + + + + - - -  - - - + /> - Message header + Message being edited @@ -24672,14 +28385,27 @@ exports[`Story Snapshots: EditedLargeFont should match snapshot 1`] = ` + + +`; + +exports[`Story Snapshots: Emojis should match snapshot 1`] = ` + + + > + + + + + + + + + + diego.mello + + + 10:00 AM + + + + - - - Message without header - + 👊 - + + 🤙👏 + + - - - -  - - - - - -`; - -exports[`Story Snapshots: Editing should match snapshot 1`] = ` - - - - - Message being edited - + 👏 - + @@ -25262,27 +29101,14 @@ exports[`Story Snapshots: Editing should match snapshot 1`] = ` - - -`; - -exports[`Story Snapshots: EditingLargeFont should match snapshot 1`] = ` - - @@ -25362,8 +29188,8 @@ exports[`Story Snapshots: EditingLargeFont should match snapshot 1`] = ` [ { "borderRadius": 4, - "height": 46.800000000000004, - "width": 46.800000000000004, + "height": 36, + "width": 36, }, { "marginTop": 4, @@ -25417,7 +29243,7 @@ exports[`Story Snapshots: EditingLargeFont should match snapshot 1`] = ` "top": "50%", } } - height={46.800000000000004} + height={36} nativeViewRef={"[React.ref]"} onError={[Function]} onLoad={[Function]} @@ -25431,19 +29257,19 @@ exports[`Story Snapshots: EditingLargeFont should match snapshot 1`] = ` "headers": { "User-Agent": "RC Mobile; ios unknown; vunknown (unknown)", }, - "uri": "https://open.rocket.chat/avatar/diego.mello?format=png&size=93.60000000000001", + "uri": "https://open.rocket.chat/avatar/diego.mello?format=png&size=72", }, ] } style={ { "borderRadius": 4, - "height": 46.800000000000004, - "width": 46.800000000000004, + "height": 36, + "width": 36, } } transition={null} - width={46.800000000000004} + width={36} /> @@ -25534,6 +29360,25 @@ exports[`Story Snapshots: EditingLargeFont should match snapshot 1`] = ` > diego.mello + + 10:00 AM + - - 10:00 AM - - - - + + + + + + - Message being edited - - - + style={ + { + "height": 30, + "width": 30, + } + } + transition={null} + width={30} + /> + + @@ -25637,27 +29562,14 @@ exports[`Story Snapshots: EditingLargeFont should match snapshot 1`] = ` - - -`; - -exports[`Story Snapshots: Emojis should match snapshot 1`] = ` - - - - 👊 - - - 🤙👏 - + "height": 30, + "width": 30, + } + } + transition={null} + width={30} + /> + @@ -26012,13 +29932,13 @@ exports[`Story Snapshots: Emojis should match snapshot 1`] = ` - 👏 + 🤙 + + + @@ -26354,13 +30320,13 @@ exports[`Story Snapshots: Emojis should match snapshot 1`] = ` - - - + 🤙 + + - - - + :react_rocket: + + - - - + 🤙 + + - - + > + 🤙 + + + @@ -26814,14 +30738,27 @@ exports[`Story Snapshots: Emojis should match snapshot 1`] = ` + + +`; + +exports[`Story Snapshots: EmojisLargeFont should match snapshot 1`] = ` + + @@ -26901,8 +30838,8 @@ exports[`Story Snapshots: Emojis should match snapshot 1`] = ` [ { "borderRadius": 4, - "height": 36, - "width": 36, + "height": 46.800000000000004, + "width": 46.800000000000004, }, { "marginTop": 4, @@ -26956,7 +30893,7 @@ exports[`Story Snapshots: Emojis should match snapshot 1`] = ` "top": "50%", } } - height={36} + height={46.800000000000004} nativeViewRef={"[React.ref]"} onError={[Function]} onLoad={[Function]} @@ -26970,19 +30907,19 @@ exports[`Story Snapshots: Emojis should match snapshot 1`] = ` "headers": { "User-Agent": "RC Mobile; ios unknown; vunknown (unknown)", }, - "uri": "https://open.rocket.chat/avatar/diego.mello?format=png&size=72", + "uri": "https://open.rocket.chat/avatar/diego.mello?format=png&size=93.60000000000001", }, ] } style={ { "borderRadius": 4, - "height": 36, - "width": 36, + "height": 46.800000000000004, + "width": 46.800000000000004, } } transition={null} - width={36} + width={46.800000000000004} /> @@ -27073,25 +31010,6 @@ exports[`Story Snapshots: Emojis should match snapshot 1`] = ` > diego.mello - - 10:00 AM - + + 10:00 AM + - - + - + "backgroundColor": "transparent", + "fontFamily": "Inter", + "fontSize": 30, + "fontWeight": "400", + "lineHeight": 43, + "textAlign": "left", + }, + ] + } + > + 🤙👏 + @@ -27184,13 +31113,13 @@ exports[`Story Snapshots: Emojis should match snapshot 1`] = ` @@ -27270,8 +31199,8 @@ exports[`Story Snapshots: Emojis should match snapshot 1`] = ` [ { "borderRadius": 4, - "height": 36, - "width": 36, + "height": 46.800000000000004, + "width": 46.800000000000004, }, { "marginTop": 4, @@ -27325,7 +31254,7 @@ exports[`Story Snapshots: Emojis should match snapshot 1`] = ` "top": "50%", } } - height={36} + height={46.800000000000004} nativeViewRef={"[React.ref]"} onError={[Function]} onLoad={[Function]} @@ -27339,19 +31268,19 @@ exports[`Story Snapshots: Emojis should match snapshot 1`] = ` "headers": { "User-Agent": "RC Mobile; ios unknown; vunknown (unknown)", }, - "uri": "https://open.rocket.chat/avatar/diego.mello?format=png&size=72", + "uri": "https://open.rocket.chat/avatar/diego.mello?format=png&size=93.60000000000001", }, ] } style={ { "borderRadius": 4, - "height": 36, - "width": 36, + "height": 46.800000000000004, + "width": 46.800000000000004, } } transition={null} - width={36} + width={46.800000000000004} /> @@ -27442,25 +31371,6 @@ exports[`Story Snapshots: Emojis should match snapshot 1`] = ` > diego.mello - - 10:00 AM - + + 10:00 AM + - 🤙 + 👏 - - - @@ -27572,13 +31455,13 @@ exports[`Story Snapshots: Emojis should match snapshot 1`] = ` @@ -27658,8 +31541,8 @@ exports[`Story Snapshots: Emojis should match snapshot 1`] = ` [ { "borderRadius": 4, - "height": 36, - "width": 36, + "height": 46.800000000000004, + "width": 46.800000000000004, }, { "marginTop": 4, @@ -27713,7 +31596,7 @@ exports[`Story Snapshots: Emojis should match snapshot 1`] = ` "top": "50%", } } - height={36} + height={46.800000000000004} nativeViewRef={"[React.ref]"} onError={[Function]} onLoad={[Function]} @@ -27727,19 +31610,19 @@ exports[`Story Snapshots: Emojis should match snapshot 1`] = ` "headers": { "User-Agent": "RC Mobile; ios unknown; vunknown (unknown)", }, - "uri": "https://open.rocket.chat/avatar/diego.mello?format=png&size=72", + "uri": "https://open.rocket.chat/avatar/diego.mello?format=png&size=93.60000000000001", }, ] } style={ { "borderRadius": 4, - "height": 36, - "width": 36, + "height": 46.800000000000004, + "width": 46.800000000000004, } } transition={null} - width={36} + width={46.800000000000004} /> @@ -27830,25 +31713,6 @@ exports[`Story Snapshots: Emojis should match snapshot 1`] = ` > diego.mello - - 10:00 AM - + + 10:00 AM + - - - - 🤙 - - + + + - :react_rocket: - - + + + - 🤙 - - - 🤙 - - - + transition={null} + width={30} + /> + + @@ -27990,27 +31915,14 @@ exports[`Story Snapshots: Emojis should match snapshot 1`] = ` - - -`; - -exports[`Story Snapshots: EmojisLargeFont should match snapshot 1`] = ` - - - - 👊 - - - 🤙👏 - + "height": 30, + "width": 30, + } + } + transition={null} + width={30} + /> + @@ -28365,13 +32285,13 @@ exports[`Story Snapshots: EmojisLargeFont should match snapshot 1`] = ` - 👏 + 🤙 + + + @@ -28707,13 +32673,13 @@ exports[`Story Snapshots: EmojisLargeFont should match snapshot 1`] = ` - - - + 🤙 + + - - - + :react_rocket: + + - - - + 🤙 + + - - + > + 🤙 + + + @@ -29167,14 +33091,27 @@ exports[`Story Snapshots: EmojisLargeFont should match snapshot 1`] = ` + + +`; + +exports[`Story Snapshots: Encrypted should match snapshot 1`] = ` + + @@ -29254,8 +33191,8 @@ exports[`Story Snapshots: EmojisLargeFont should match snapshot 1`] = ` [ { "borderRadius": 4, - "height": 46.800000000000004, - "width": 46.800000000000004, + "height": 36, + "width": 36, }, { "marginTop": 4, @@ -29309,7 +33246,7 @@ exports[`Story Snapshots: EmojisLargeFont should match snapshot 1`] = ` "top": "50%", } } - height={46.800000000000004} + height={36} nativeViewRef={"[React.ref]"} onError={[Function]} onLoad={[Function]} @@ -29323,19 +33260,19 @@ exports[`Story Snapshots: EmojisLargeFont should match snapshot 1`] = ` "headers": { "User-Agent": "RC Mobile; ios unknown; vunknown (unknown)", }, - "uri": "https://open.rocket.chat/avatar/diego.mello?format=png&size=93.60000000000001", + "uri": "https://open.rocket.chat/avatar/diego.mello?format=png&size=72", }, ] } style={ { "borderRadius": 4, - "height": 46.800000000000004, - "width": 46.800000000000004, + "height": 36, + "width": 36, } } transition={null} - width={46.800000000000004} + width={36} /> @@ -29426,6 +33363,25 @@ exports[`Story Snapshots: EmojisLargeFont should match snapshot 1`] = ` > diego.mello + + 10:00 AM + + > + + +  + + + - - 10:00 AM - + + + + + + Message + + + + + + + + + + + + + + + + + + + + + + + - - - - - + > + Message Encrypted without Header + + + + + + +  + + + @@ -29537,13 +33788,13 @@ exports[`Story Snapshots: EmojisLargeFont should match snapshot 1`] = ` @@ -29623,8 +33874,8 @@ exports[`Story Snapshots: EmojisLargeFont should match snapshot 1`] = ` [ { "borderRadius": 4, - "height": 46.800000000000004, - "width": 46.800000000000004, + "height": 36, + "width": 36, }, { "marginTop": 4, @@ -29678,7 +33929,7 @@ exports[`Story Snapshots: EmojisLargeFont should match snapshot 1`] = ` "top": "50%", } } - height={46.800000000000004} + height={36} nativeViewRef={"[React.ref]"} onError={[Function]} onLoad={[Function]} @@ -29692,19 +33943,19 @@ exports[`Story Snapshots: EmojisLargeFont should match snapshot 1`] = ` "headers": { "User-Agent": "RC Mobile; ios unknown; vunknown (unknown)", }, - "uri": "https://open.rocket.chat/avatar/diego.mello?format=png&size=93.60000000000001", + "uri": "https://open.rocket.chat/avatar/diego.mello?format=png&size=72", }, ] } style={ { "borderRadius": 4, - "height": 46.800000000000004, - "width": 46.800000000000004, + "height": 36, + "width": 36, } } transition={null} - width={46.800000000000004} + width={36} /> @@ -29795,6 +34046,25 @@ exports[`Story Snapshots: EmojisLargeFont should match snapshot 1`] = ` > diego.mello + + 10:00 AM + + > + + +  + + + - - 10:00 AM - + + + + + Message Encrypted with Reactions + + + + + + + + + 😂 + + + 1 + + + + + + + + 1 + + + + + + + 🤔 + + + 1 + + + + - 🤙 +  - - - @@ -29925,13 +34634,13 @@ exports[`Story Snapshots: EmojisLargeFont should match snapshot 1`] = ` - - - +  + + + + Thread with emoji :) 😂 + + + - - - - - + undefined, + ], + { + "fontFamily": "custom", + "fontStyle": "normal", + "fontWeight": "normal", + }, + {}, + ] + } + > +  + + + + + - - - - diego.mello - - - - + } + transition={null} + width={20} + /> + + + + + + - 10:00 AM + Thread reply encrypted - - - - - - - 🤙 - - - :react_rocket: - - - 🤙 - - - 🤙 - - - - - - - - + + - - -`; - -exports[`Story Snapshots: Encrypted should match snapshot 1`] = ` - - - - - - - - Message - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Message Encrypted without Header - - - - - - - - - - - -  - + + + + + + Temp message encrypted + + + + + + @@ -31040,13 +35413,13 @@ exports[`Story Snapshots: Encrypted should match snapshot 1`] = ` -  - - - - - - - - - - - Message Encrypted with Reactions - - - - - - - - - - 😂 - - - 1 - - - - - - - - 1 - - - - - - - 🤔 - - - 1 - - - - +  + + + + + + + - + -  + { + "color": "#2F343D", + }, + ] + } + > + Message Edited encrypted + - + @@ -31886,218 +35846,164 @@ exports[`Story Snapshots: Encrypted should match snapshot 1`] = ` - - + - -  - - - - Thread with emoji :) 😂 - - - + -  - + "borderRadius": 4, + "height": 36, + "width": 36, + } + } + transition={null} + width={36} + /> + - + + diego.mello + + + 10:00 AM + + + + + +  + + + + > + +  + + - - - - Thread reply encrypted - + + + + This message has error and is encrypted + + + + - + - - + + + +  + + + + + + Read Receipt encrypted with Header + + + + + + + + + + + + + + + + + + + + + + + + + - Temp message encrypted + Read Receipt encrypted without Header @@ -32658,20 +36934,141 @@ exports[`Story Snapshots: Encrypted should match snapshot 1`] = ` + + + +  + + + +  + + + + +`; + +exports[`Story Snapshots: EncryptedLargeFont should match snapshot 1`] = ` + + @@ -32751,8 +37148,8 @@ exports[`Story Snapshots: Encrypted should match snapshot 1`] = ` [ { "borderRadius": 4, - "height": 36, - "width": 36, + "height": 46.800000000000004, + "width": 46.800000000000004, }, { "marginTop": 4, @@ -32806,7 +37203,7 @@ exports[`Story Snapshots: Encrypted should match snapshot 1`] = ` "top": "50%", } } - height={36} + height={46.800000000000004} nativeViewRef={"[React.ref]"} onError={[Function]} onLoad={[Function]} @@ -32820,19 +37217,19 @@ exports[`Story Snapshots: Encrypted should match snapshot 1`] = ` "headers": { "User-Agent": "RC Mobile; ios unknown; vunknown (unknown)", }, - "uri": "https://open.rocket.chat/avatar/diego.mello?format=png&size=72", + "uri": "https://open.rocket.chat/avatar/diego.mello?format=png&size=93.60000000000001", }, ] } style={ { "borderRadius": 4, - "height": 36, - "width": 36, + "height": 46.800000000000004, + "width": 46.800000000000004, } } transition={null} - width={36} + width={46.800000000000004} /> @@ -32923,25 +37320,6 @@ exports[`Story Snapshots: Encrypted should match snapshot 1`] = ` > diego.mello - - 10:00 AM - + + 10:00 AM + - Message Edited encrypted + Message @@ -33098,445 +37495,129 @@ exports[`Story Snapshots: Encrypted should match snapshot 1`] = ` - - - - - - - - - - - - - - - diego.mello - - - 10:00 AM - - - - - -  - - - - -  - - - - + + + - - - This message has error and is encrypted + + + Message Encrypted without Header + + - - + + + + + +  + + + - + - - + + @@ -33644,8 +37831,8 @@ exports[`Story Snapshots: Encrypted should match snapshot 1`] = ` [ { "borderRadius": 4, - "height": 36, - "width": 36, + "height": 46.800000000000004, + "width": 46.800000000000004, }, { "marginTop": 4, @@ -33699,7 +37886,7 @@ exports[`Story Snapshots: Encrypted should match snapshot 1`] = ` "top": "50%", } } - height={36} + height={46.800000000000004} nativeViewRef={"[React.ref]"} onError={[Function]} onLoad={[Function]} @@ -33713,19 +37900,19 @@ exports[`Story Snapshots: Encrypted should match snapshot 1`] = ` "headers": { "User-Agent": "RC Mobile; ios unknown; vunknown (unknown)", }, - "uri": "https://open.rocket.chat/avatar/diego.mello?format=png&size=72", + "uri": "https://open.rocket.chat/avatar/diego.mello?format=png&size=93.60000000000001", }, ] } style={ { "borderRadius": 4, - "height": 36, - "width": 36, + "height": 46.800000000000004, + "width": 46.800000000000004, } } transition={null} - width={36} + width={46.800000000000004} /> @@ -33816,33 +38003,394 @@ exports[`Story Snapshots: Encrypted should match snapshot 1`] = ` > diego.mello - + + + +  + + + + + + 10:00 AM + + + + + + + + Message Encrypted with Reactions + + + + + + + + + + 😂 + + + 1 + + + + - 10:00 AM - - - + + + + 1 + + + - -  - - - -  - - - - - + "color": "#ffffff", + "fontSize": 13, + } + } + > + 🤔 + + + 1 + + + - - - Read Receipt encrypted with Header - + undefined, + ], + { + "fontFamily": "custom", + "fontStyle": "normal", + "fontWeight": "normal", + }, + {}, + ] + } + > +  - + @@ -34021,13 +38591,13 @@ exports[`Story Snapshots: Encrypted should match snapshot 1`] = ` - - - +  + + + - - - - - - - - Read Receipt encrypted without Header - - - - - - - - + "fontFamily": "Inter", + "fontSize": 16, + "fontWeight": "400", + "textAlign": "left", + }, + { + "color": "#095AD2", + }, + ] + } + testID="markdown-preview-Thread with emoji :) 😂" + > + Thread with emoji :) 😂 + + + +  + + + + + + + + + + + + -  + Thread reply encrypted - -  - - - + + - - -`; - -exports[`Story Snapshots: EncryptedLargeFont should match snapshot 1`] = ` - - - - - - - Message - - - - - - - - - - - - - - - - - - - - - - - - - - - - Message Encrypted without Header - - - - - - - - - - - -  - + } + > + + + Temp message encrypted + + + + + + @@ -34997,13 +39370,13 @@ exports[`Story Snapshots: EncryptedLargeFont should match snapshot 1`] = ` - Message Encrypted with Reactions + Message Edited encrypted - - - - - 😂 - - - 1 - - - - - - - - 1 - - - - - - - 🤔 - - - 1 - - - - - - -  - - - - @@ -35843,218 +39803,164 @@ exports[`Story Snapshots: EncryptedLargeFont should match snapshot 1`] = ` - - + - -  - - - - Thread with emoji :) 😂 - - - + -  - + "borderRadius": 4, + "height": 46.800000000000004, + "width": 46.800000000000004, + } + } + transition={null} + width={46.800000000000004} + /> + - + diego.mello + + + + + > + +  + + + + +  + + - - + > + 10:00 AM + - - Thread reply encrypted - + + + + This message has error and is encrypted + + + + - + - - + + + +  + - Temp message encrypted + Read Receipt encrypted with Header @@ -36622,13 +40726,13 @@ exports[`Story Snapshots: EncryptedLargeFont should match snapshot 1`] = ` - - - - - - + /> - - - - diego.mello - - - - - -  - - - - - - 10:00 AM - - Message Edited encrypted + Read Receipt encrypted without Header @@ -37048,17 +40891,138 @@ exports[`Story Snapshots: EncryptedLargeFont should match snapshot 1`] = ` + + + +  + + + +  + + + + +`; + +exports[`Story Snapshots: Error should match snapshot 1`] = ` + + @@ -37100,8 +41064,8 @@ exports[`Story Snapshots: EncryptedLargeFont should match snapshot 1`] = ` [ { "borderRadius": 4, - "height": 46.800000000000004, - "width": 46.800000000000004, + "height": 36, + "width": 36, }, { "marginTop": 4, @@ -37155,7 +41119,7 @@ exports[`Story Snapshots: EncryptedLargeFont should match snapshot 1`] = ` "top": "50%", } } - height={46.800000000000004} + height={36} nativeViewRef={"[React.ref]"} onError={[Function]} onLoad={[Function]} @@ -37169,19 +41133,19 @@ exports[`Story Snapshots: EncryptedLargeFont should match snapshot 1`] = ` "headers": { "User-Agent": "RC Mobile; ios unknown; vunknown (unknown)", }, - "uri": "https://open.rocket.chat/avatar/diego.mello?format=png&size=93.60000000000001", + "uri": "https://open.rocket.chat/avatar/diego.mello?format=png&size=72", }, ] } style={ { "borderRadius": 4, - "height": 46.800000000000004, - "width": 46.800000000000004, + "height": 36, + "width": 36, } } transition={null} - width={46.800000000000004} + width={36} /> @@ -37259,18 +41223,37 @@ exports[`Story Snapshots: EncryptedLargeFont should match snapshot 1`] = ` "backgroundColor": "transparent", "flexShrink": 1, "fontFamily": "Inter", - "fontSize": 16, - "fontWeight": "600", - "lineHeight": 22, + "fontSize": 16, + "fontWeight": "600", + "lineHeight": 22, + "textAlign": "left", + }, + { + "color": "#1F2329", + }, + ] + } + > + diego.mello + + - diego.mello + 10:00 AM - - -  - - - - 10:00 AM - - This message has error and is encrypted + This message has error @@ -37515,420 +41409,114 @@ exports[`Story Snapshots: EncryptedLargeFont should match snapshot 1`] = ` - - + - + - - - - - - - - - - - - diego.mello - - - - - -  - - - -  - - - - - 10:00 AM - + } + > + - - - - - Read Receipt encrypted with Header - - + This message has error too - - + + - + + + + +  + + + - - + + + + +`; + +exports[`Story Snapshots: ErrorLargeFont should match snapshot 1`] = ` + + - - + - + + + + + + + + + + diego.mello + + + + + +  + + + + + + > + 10:00 AM + - - - - - Read Receipt encrypted without Header - - + This message has error - - + + - - - -  - - - -  - - - + - - + + - - -`; - -exports[`Story Snapshots: Error should match snapshot 1`] = ` - - + - + + > + + + + This message has error too + + + + + + + +  + + + + + + + + + +`; + +exports[`Story Snapshots: FileAttachmentsWithFilenames should match snapshot 1`] = ` + + + + + + + - - diego.mello - - - 10:00 AM - - - - -  - + style={ + { + "borderRadius": 4, + "height": 36, + "width": 36, + } + } + transition={null} + width={36} + /> - - - This message has error - + diego.mello - + + 10:00 AM + + + - - - - - - - - - - - - - - - - - - - + + + + + + test.py + + + + test.py + + + + + + + + - This message has error too + + + Check out this Python file + + - - + + - - - - -  - - - + - - + + - - -`; - -exports[`Story Snapshots: ErrorLargeFont should match snapshot 1`] = ` - - - - - - - - - - - - - - diego.mello - - - - -  - - - - - - 10:00 AM - + style={ + { + "borderRadius": 4, + "height": 36, + "width": 36, + } + } + transition={null} + width={36} + /> + + + - - - This message has error - + diego.mello - + + 10:00 AM + + + - - - - - - - - - - - - - - - - - - - + + + + + + Component.tsx + + + + Component.tsx + + + + + + + + - This message has error too + + + TypeScript component + + - - + + - - - - -  - - - + - - + + - - -`; - -exports[`Story Snapshots: FileAttachmentsWithFilenames should match snapshot 1`] = ` - - - test.py + config.json - test.py + config.json @@ -39919,7 +43659,7 @@ exports[`Story Snapshots: FileAttachmentsWithFilenames should match snapshot 1`] - Check out this Python file + Configuration file @@ -39987,13 +43727,13 @@ exports[`Story Snapshots: FileAttachmentsWithFilenames should match snapshot 1`] - Component.tsx + main.go - - Component.tsx - + + + + This is the + + + + main + + + + entry point for the application + + + + - TypeScript component + File with description @@ -40483,13 +44300,13 @@ exports[`Story Snapshots: FileAttachmentsWithFilenames should match snapshot 1`] - - - - - - + /> - - diego.mello - - - 10:00 AM - - - - - - + "max": undefined, + "min": undefined, + "now": undefined, + "text": undefined, + } + } + accessible={true} + collapsable={false} + focusable={true} + onClick={[Function]} + onResponderGrant={[Function]} + onResponderMove={[Function]} + onResponderRelease={[Function]} + onResponderTerminate={[Function]} + onResponderTerminationRequest={[Function]} + onStartShouldSetResponder={[Function]} + style={ + { + "alignItems": "center", + "alignSelf": "flex-start", + "borderColor": "#CBCED1", + "borderLeftWidth": 2, + "flex": 1, + "flexDirection": "row", + "opacity": 1, + } + } + testID="reply-undefined-undefined" + > + + + + + document.pdf + + + + document.pdf + + + + + - config.json + image.png - config.json + image.png - - - - - - Configuration file - - - - - + + + +`; + +exports[`Story Snapshots: FileAttachmentsWithFilenamesLargeFont should match snapshot 1`] = ` + + @@ -41065,8 +44779,8 @@ exports[`Story Snapshots: FileAttachmentsWithFilenames should match snapshot 1`] [ { "borderRadius": 4, - "height": 36, - "width": 36, + "height": 46.800000000000004, + "width": 46.800000000000004, }, { "marginTop": 4, @@ -41120,7 +44834,7 @@ exports[`Story Snapshots: FileAttachmentsWithFilenames should match snapshot 1`] "top": "50%", } } - height={36} + height={46.800000000000004} nativeViewRef={"[React.ref]"} onError={[Function]} onLoad={[Function]} @@ -41134,19 +44848,19 @@ exports[`Story Snapshots: FileAttachmentsWithFilenames should match snapshot 1`] "headers": { "User-Agent": "RC Mobile; ios unknown; vunknown (unknown)", }, - "uri": "https://open.rocket.chat/avatar/diego.mello?format=png&size=72", + "uri": "https://open.rocket.chat/avatar/diego.mello?format=png&size=93.60000000000001", }, ] } style={ { "borderRadius": 4, - "height": 36, - "width": 36, + "height": 46.800000000000004, + "width": 46.800000000000004, } } transition={null} - width={36} + width={46.800000000000004} /> @@ -41237,25 +44951,6 @@ exports[`Story Snapshots: FileAttachmentsWithFilenames should match snapshot 1`] > diego.mello - - 10:00 AM - + + 10:00 AM + - main.go + test.py - - - - - This is the - - - - main - - - - entry point for the application - - - - + test.py + - File with description + Check out this Python file @@ -41552,13 +45189,13 @@ exports[`Story Snapshots: FileAttachmentsWithFilenames should match snapshot 1`] + > + + + + + + + + + + diego.mello + + + + + + 10:00 AM + - document.pdf + Component.tsx - document.pdf + Component.tsx + + - - - - - - image.png - - - - image.png - - - - + TypeScript component + + + - - - -`; - -exports[`Story Snapshots: FileAttachmentsWithFilenamesLargeFont should match snapshot 1`] = ` - - - test.py + config.json - test.py + config.json @@ -42373,7 +46113,7 @@ exports[`Story Snapshots: FileAttachmentsWithFilenamesLargeFont should match sna - Check out this Python file + Configuration file @@ -42441,13 +46181,13 @@ exports[`Story Snapshots: FileAttachmentsWithFilenamesLargeFont should match sna + + main.go + + + @@ -42825,10 +46592,10 @@ exports[`Story Snapshots: FileAttachmentsWithFilenamesLargeFont should match sna [ { "backgroundColor": "transparent", - "flex": 1, "fontFamily": "Inter", "fontSize": 16, - "fontWeight": "500", + "fontWeight": "400", + "lineHeight": 22, "textAlign": "left", }, { @@ -42837,39 +46604,89 @@ exports[`Story Snapshots: FileAttachmentsWithFilenamesLargeFont should match sna ] } > - Component.tsx + + + This is the + + + + main + + + + entry point for the application + + - - Component.tsx - - TypeScript component + File with description @@ -42937,13 +46754,13 @@ exports[`Story Snapshots: FileAttachmentsWithFilenamesLargeFont should match sna - - - - - - + /> - - - - diego.mello - - - - - - 10:00 AM - - config.json + document.pdf - config.json + document.pdf - - - - - - Configuration file - - - + + + image.png + + + + image.png + + + + + + + +`; + +exports[`Story Snapshots: FullName should match snapshot 1`] = ` + + @@ -43519,8 +47233,8 @@ exports[`Story Snapshots: FileAttachmentsWithFilenamesLargeFont should match sna [ { "borderRadius": 4, - "height": 46.800000000000004, - "width": 46.800000000000004, + "height": 36, + "width": 36, }, { "marginTop": 4, @@ -43574,7 +47288,7 @@ exports[`Story Snapshots: FileAttachmentsWithFilenamesLargeFont should match sna "top": "50%", } } - height={46.800000000000004} + height={36} nativeViewRef={"[React.ref]"} onError={[Function]} onLoad={[Function]} @@ -43588,19 +47302,19 @@ exports[`Story Snapshots: FileAttachmentsWithFilenamesLargeFont should match sna "headers": { "User-Agent": "RC Mobile; ios unknown; vunknown (unknown)", }, - "uri": "https://open.rocket.chat/avatar/diego.mello?format=png&size=93.60000000000001", + "uri": "https://open.rocket.chat/avatar/diego.mello?format=png&size=72", }, ] } style={ { "borderRadius": 4, - "height": 46.800000000000004, - "width": 46.800000000000004, + "height": 36, + "width": 36, } } transition={null} - width={46.800000000000004} + width={36} /> @@ -43668,7 +47382,7 @@ exports[`Story Snapshots: FileAttachmentsWithFilenamesLargeFont should match sna "opacity": 1, } } - testID="username-header-diego.mello" + testID="username-header-Diego Mello" > - diego.mello + Diego Mello + + + 10:00 AM - - 10:00 AM - - - - - - - - main.go - - - - - - - This is the - - - - main - - - - entry point for the application - - - - - - - - - - - File with description + Message @@ -44005,14 +47508,27 @@ exports[`Story Snapshots: FileAttachmentsWithFilenamesLargeFont should match sna + + +`; + +exports[`Story Snapshots: FullNameLargeFont should match snapshot 1`] = ` + + - - - - - - - - - document.pdf - - - - document.pdf - - - - - + } + transition={null} + width={46.800000000000004} + /> + + + + + + + + + Diego Mello + + + + + + 10:00 AM + + + - - - - - - image.png - - - - image.png - - - - + Message + + + - @@ -44389,7 +47887,7 @@ exports[`Story Snapshots: FileAttachmentsWithFilenamesLargeFont should match sna `; -exports[`Story Snapshots: FullName should match snapshot 1`] = ` +exports[`Story Snapshots: GroupedMessages should match snapshot 1`] = ` - Diego Mello + diego.mello - Message + ... @@ -44760,27 +48258,14 @@ exports[`Story Snapshots: FullName should match snapshot 1`] = ` - - -`; - -exports[`Story Snapshots: FullNameLargeFont should match snapshot 1`] = ` - - @@ -44860,8 +48345,8 @@ exports[`Story Snapshots: FullNameLargeFont should match snapshot 1`] = ` [ { "borderRadius": 4, - "height": 46.800000000000004, - "width": 46.800000000000004, + "height": 36, + "width": 36, }, { "marginTop": 4, @@ -44871,7 +48356,7 @@ exports[`Story Snapshots: FullNameLargeFont should match snapshot 1`] = ` testID="avatar" > @@ -45009,7 +48494,7 @@ exports[`Story Snapshots: FullNameLargeFont should match snapshot 1`] = ` "opacity": 1, } } - testID="username-header-Diego Mello" + testID="username-header-Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua." > - Diego Mello + Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. + + + 10:00 AM - + + + + + + Different user + + + + + + + + + + + + + + + + + + + + + + + - 10:00 AM - + } + > - Message + This is the third message @@ -45129,33 +48786,27 @@ exports[`Story Snapshots: FullNameLargeFont should match snapshot 1`] = ` + - - -`; - -exports[`Story Snapshots: GroupedMessages should match snapshot 1`] = ` - - - - - - - - + /> - - - - diego.mello - - - 10:00 AM - - - - - ... + This is the second message @@ -45504,6 +48965,13 @@ exports[`Story Snapshots: GroupedMessages should match snapshot 1`] = ` + @@ -45511,13 +48979,13 @@ exports[`Story Snapshots: GroupedMessages should match snapshot 1`] = ` - Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. + diego.mello - Different user + This is the first message @@ -45872,14 +49340,27 @@ exports[`Story Snapshots: GroupedMessages should match snapshot 1`] = ` + + +`; + +exports[`Story Snapshots: GroupedMessagesLargeFont should match snapshot 1`] = ` + + - - - - - - - This is the third message - - - - - - - - - - - - - - - - - - - - - - + } + accessibilityValue={ + { + "max": undefined, + "min": undefined, + "now": undefined, + "text": undefined, + } + } + accessible={true} + collapsable={false} + focusable={true} + onClick={[Function]} + onResponderGrant={[Function]} + onResponderMove={[Function]} + onResponderRelease={[Function]} + onResponderTerminate={[Function]} + onResponderTerminationRequest={[Function]} + onStartShouldSetResponder={[Function]} + style={ + { + "opacity": 1, + } + } + > + + + + + + + + diego.mello + + + + + + 10:00 AM + - This is the second message + ... @@ -46217,13 +49709,6 @@ exports[`Story Snapshots: GroupedMessages should match snapshot 1`] = ` - @@ -46231,13 +49716,13 @@ exports[`Story Snapshots: GroupedMessages should match snapshot 1`] = ` @@ -46317,8 +49802,8 @@ exports[`Story Snapshots: GroupedMessages should match snapshot 1`] = ` [ { "borderRadius": 4, - "height": 36, - "width": 36, + "height": 46.800000000000004, + "width": 46.800000000000004, }, { "marginTop": 4, @@ -46328,7 +49813,7 @@ exports[`Story Snapshots: GroupedMessages should match snapshot 1`] = ` testID="avatar" > @@ -46466,7 +49951,7 @@ exports[`Story Snapshots: GroupedMessages should match snapshot 1`] = ` "opacity": 1, } } - testID="username-header-diego.mello" + testID="username-header-Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua." > - diego.mello - - - 10:00 AM + Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. + + 10:00 AM + - This is the first message + Different user @@ -46592,27 +50077,14 @@ exports[`Story Snapshots: GroupedMessages should match snapshot 1`] = ` - - -`; - -exports[`Story Snapshots: GroupedMessagesLargeFont should match snapshot 1`] = ` - - + - + + > + + + + This is the third message + + + + + + + + + + + + + + + + + + + - - - - diego.mello - - - - - - 10:00 AM - - ... + This is the second message @@ -46961,6 +50422,13 @@ exports[`Story Snapshots: GroupedMessagesLargeFont should match snapshot 1`] = ` + @@ -46968,13 +50436,13 @@ exports[`Story Snapshots: GroupedMessagesLargeFont should match snapshot 1`] = ` - Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. + diego.mello - Different user + This is the first message @@ -47329,14 +50797,27 @@ exports[`Story Snapshots: GroupedMessagesLargeFont should match snapshot 1`] = ` + + +`; + +exports[`Story Snapshots: Ignored should match snapshot 1`] = ` + + - - - - - - - - - This is the third message - - - - - - + transition={null} + width={20} + /> + + - - + > + + + Message ignored. Tap to display it. + + + + + + + +`; + +exports[`Story Snapshots: IgnoredLargeFont should match snapshot 1`] = ` + + - + + + + + + + - - - - - - - - This is the second message - - - - - - + Message ignored. Tap to display it. + - - - + + + + +`; + +exports[`Story Snapshots: InlineKatex should match snapshot 1`] = ` + + @@ -47774,8 +51363,8 @@ exports[`Story Snapshots: GroupedMessagesLargeFont should match snapshot 1`] = ` [ { "borderRadius": 4, - "height": 46.800000000000004, - "width": 46.800000000000004, + "height": 36, + "width": 36, }, { "marginTop": 4, @@ -47829,7 +51418,7 @@ exports[`Story Snapshots: GroupedMessagesLargeFont should match snapshot 1`] = ` "top": "50%", } } - height={46.800000000000004} + height={36} nativeViewRef={"[React.ref]"} onError={[Function]} onLoad={[Function]} @@ -47843,19 +51432,19 @@ exports[`Story Snapshots: GroupedMessagesLargeFont should match snapshot 1`] = ` "headers": { "User-Agent": "RC Mobile; ios unknown; vunknown (unknown)", }, - "uri": "https://open.rocket.chat/avatar/diego.mello?format=png&size=93.60000000000001", + "uri": "https://open.rocket.chat/avatar/diego.mello?format=png&size=72", }, ] } style={ { "borderRadius": 4, - "height": 46.800000000000004, - "width": 46.800000000000004, + "height": 36, + "width": 36, } } transition={null} - width={46.800000000000004} + width={36} /> @@ -47946,338 +51535,91 @@ exports[`Story Snapshots: GroupedMessagesLargeFont should match snapshot 1`] = ` > diego.mello - - - - - 10:00 AM - - - - - - - - This is the first message - - - - - - - - - - - - - - - - -`; - -exports[`Story Snapshots: Ignored should match snapshot 1`] = ` - - - - - - - - - - - - - - - - - - + 10:00 AM + + + + + - Message ignored. Tap to display it. - + + + + + + xˆ2 + yˆ2 - zˆ2 + + + + + + - - + + @@ -48286,7 +51628,7 @@ exports[`Story Snapshots: Ignored should match snapshot 1`] = ` `; -exports[`Story Snapshots: IgnoredLargeFont should match snapshot 1`] = ` +exports[`Story Snapshots: InlineKatexLargeFont should match snapshot 1`] = ` - - + > + + - - + + + + diego.mello + + + + - Message ignored. Tap to display it. + 10:00 AM + + + + + + + xˆ2 + yˆ2 - zˆ2 + + + + + + - - + + @@ -48519,7 +51989,7 @@ exports[`Story Snapshots: IgnoredLargeFont should match snapshot 1`] = ` `; -exports[`Story Snapshots: InlineKatex should match snapshot 1`] = ` +exports[`Story Snapshots: Katex should match snapshot 1`] = ` - - - - xˆ2 + yˆ2 - zˆ2 - - - + @@ -48880,7 +52318,7 @@ exports[`Story Snapshots: InlineKatex should match snapshot 1`] = ` `; -exports[`Story Snapshots: InlineKatexLargeFont should match snapshot 1`] = ` +exports[`Story Snapshots: KatexArray should match snapshot 1`] = ` @@ -48976,8 +52414,8 @@ exports[`Story Snapshots: InlineKatexLargeFont should match snapshot 1`] = ` [ { "borderRadius": 4, - "height": 46.800000000000004, - "width": 46.800000000000004, + "height": 36, + "width": 36, }, { "marginTop": 4, @@ -49031,7 +52469,7 @@ exports[`Story Snapshots: InlineKatexLargeFont should match snapshot 1`] = ` "top": "50%", } } - height={46.800000000000004} + height={36} nativeViewRef={"[React.ref]"} onError={[Function]} onLoad={[Function]} @@ -49045,19 +52483,19 @@ exports[`Story Snapshots: InlineKatexLargeFont should match snapshot 1`] = ` "headers": { "User-Agent": "RC Mobile; ios unknown; vunknown (unknown)", }, - "uri": "https://open.rocket.chat/avatar/diego.mello?format=png&size=93.60000000000001", + "uri": "https://open.rocket.chat/avatar/diego.mello?format=png&size=72", }, ] } style={ { "borderRadius": 4, - "height": 46.800000000000004, - "width": 46.800000000000004, + "height": 36, + "width": 36, } } transition={null} - width={46.800000000000004} + width={36} /> @@ -49148,6 +52586,25 @@ exports[`Story Snapshots: InlineKatexLargeFont should match snapshot 1`] = ` > diego.mello + + 10:00 AM + - - 10:00 AM - - - - - xˆ2 + yˆ2 - zˆ2 - - - + @@ -49241,7 +52647,7 @@ exports[`Story Snapshots: InlineKatexLargeFont should match snapshot 1`] = ` `; -exports[`Story Snapshots: Katex should match snapshot 1`] = ` +exports[`Story Snapshots: KatexArrayLargeFont should match snapshot 1`] = ` @@ -49337,8 +52743,8 @@ exports[`Story Snapshots: Katex should match snapshot 1`] = ` [ { "borderRadius": 4, - "height": 36, - "width": 36, + "height": 46.800000000000004, + "width": 46.800000000000004, }, { "marginTop": 4, @@ -49392,7 +52798,7 @@ exports[`Story Snapshots: Katex should match snapshot 1`] = ` "top": "50%", } } - height={36} + height={46.800000000000004} nativeViewRef={"[React.ref]"} onError={[Function]} onLoad={[Function]} @@ -49406,19 +52812,19 @@ exports[`Story Snapshots: Katex should match snapshot 1`] = ` "headers": { "User-Agent": "RC Mobile; ios unknown; vunknown (unknown)", }, - "uri": "https://open.rocket.chat/avatar/diego.mello?format=png&size=72", + "uri": "https://open.rocket.chat/avatar/diego.mello?format=png&size=93.60000000000001", }, ] } style={ { "borderRadius": 4, - "height": 36, - "width": 36, + "height": 46.800000000000004, + "width": 46.800000000000004, } } transition={null} - width={36} + width={46.800000000000004} /> @@ -49509,25 +52915,6 @@ exports[`Story Snapshots: Katex should match snapshot 1`] = ` > diego.mello - - 10:00 AM - + + 10:00 AM + - + @@ -49588,13 +52986,13 @@ exports[`Story Snapshots: KatexLargeFont should match snapshot 1`] = ` > - + @@ -49925,13 +53315,13 @@ exports[`Story Snapshots: Lists should match snapshot 1`] = ` > Date: Tue, 3 Feb 2026 21:35:28 +0000 Subject: [PATCH 4/8] chore: format code and fix lint issues [skip ci] --- app/containers/markdown/components/Katex.tsx | 19 +++++++++---------- app/containers/message/Message.stories.tsx | 5 ++++- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/app/containers/markdown/components/Katex.tsx b/app/containers/markdown/components/Katex.tsx index 0bbd92fdb0e..bd39709ad16 100644 --- a/app/containers/markdown/components/Katex.tsx +++ b/app/containers/markdown/components/Katex.tsx @@ -18,17 +18,18 @@ const BLOCK_ENV_PATTERN = /\\begin\s*\{\s*(array|matrix|pmatrix|bmatrix|Bmatrix| export const KaTeX = ({ value }: IKaTeXProps): React.ReactElement | null => { const { colors } = useTheme(); const fixAndroidWebviewCrashStyle: StyleProp = isAndroid ? { opacity: 0.99, overflow: 'hidden' } : {}; - // KaTeX array does not render correctly in MathView (shows gray box). + // KaTeX array does not render correctly in MathView (shows gray box). // MathView does not throw, so renderError is never triggered. if (BLOCK_ENV_PATTERN.test(value)) { - return - + return ( + + ); } - + return ( { /> ); }; - - diff --git a/app/containers/message/Message.stories.tsx b/app/containers/message/Message.stories.tsx index 16d1f569c66..cf73c36decf 100644 --- a/app/containers/message/Message.stories.tsx +++ b/app/containers/message/Message.stories.tsx @@ -2231,7 +2231,10 @@ export const CollapsibleAttachmentWithText = () => ( export const CollapsibleAttachmentWithTextLargeFont = () => ( <> - + ); From 57ab129bd54f581b796fac17f0f8c9a140c98bbb Mon Sep 17 00:00:00 2001 From: OtavioStasiak Date: Wed, 4 Feb 2026 16:58:08 -0300 Subject: [PATCH 5/8] cleanup --- app/containers/message/Message.stories.tsx | 31 - .../__snapshots__/Message.test.tsx.snap | 4386 +++-------------- 2 files changed, 819 insertions(+), 3598 deletions(-) diff --git a/app/containers/message/Message.stories.tsx b/app/containers/message/Message.stories.tsx index cf73c36decf..c4db7254ec3 100644 --- a/app/containers/message/Message.stories.tsx +++ b/app/containers/message/Message.stories.tsx @@ -2191,20 +2191,6 @@ const collapsedAttachments = { } ] }; - -const collapsibleAttachmentWithText = { - collapsed: true, - title: 'Collapsed attachment block', - text: 'This attachment text should NOT appear as plain text above the message or duplicate before the block.', - description: 'Attachment description that might also leak as duplicate plain text.', - color: '#2c3e50', - fields: [ - { title: 'Field 1', value: 'Value 1', short: true }, - { title: 'Field 2', value: 'Value 2', short: true }, - { title: 'Long field', value: 'This field value could also contribute to duplicate text when expanded.', short: false } - ] -}; - export const CollapsedAttachments = () => ( <> @@ -2221,23 +2207,6 @@ export const CollapsedAttachmentsLargeFont = () => ( ); -export const CollapsibleAttachmentWithText = () => ( - <> - - - -); - -export const CollapsibleAttachmentWithTextLargeFont = () => ( - <> - - - -); - const attachmentWithTextAndLink = [ { title: 'Rocket.Chat', diff --git a/app/containers/message/__snapshots__/Message.test.tsx.snap b/app/containers/message/__snapshots__/Message.test.tsx.snap index 53d95734b79..71d0b3c66d2 100644 --- a/app/containers/message/__snapshots__/Message.test.tsx.snap +++ b/app/containers/message/__snapshots__/Message.test.tsx.snap @@ -10537,2754 +10537,6 @@ exports[`Story Snapshots: CollapsedAttachmentsLargeFont should match snapshot 1` `; -exports[`Story Snapshots: CollapsibleAttachmentWithText should match snapshot 1`] = ` - - - - - - - - - - - - - - - - - - - - - diego.mello - - - 10:00 AM - - - - - - - - - - - This is the main message body. - - - - - - - - - - - - Collapsed attachment block - - - - - -  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diego.mello - - - 10:00 AM - - - - - - - - - - - - - Collapsed attachment block - - - - - - - This attachment text should NOT appear as plain text above the message or duplicate before the block. - - - - - - - - Field 1 - - - - - - Value 1 - - - - - - - - Field 2 - - - - - - Value 2 - - - - - - - - Long field - - - - - - This field value could also contribute to duplicate text when expanded. - - - - - - - - - - - - - - Attachment description that might also leak as duplicate plain text. - - - - - - - - - - - - This is the main message body. - - - - - - - - - - - - - - - - -`; - -exports[`Story Snapshots: CollapsibleAttachmentWithTextLargeFont should match snapshot 1`] = ` - - - - - - - - - - - - - - - - - - - - - diego.mello - - - - - - 10:00 AM - - - - - - - - This is the main message body. - - - - - - - - - - - - Collapsed attachment block - - - - - -  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diego.mello - - - - - - 10:00 AM - - - - - - - - - - Collapsed attachment block - - - - - - - This attachment text should NOT appear as plain text above the message or duplicate before the block. - - - - - - - - Field 1 - - - - - - Value 1 - - - - - - - - Field 2 - - - - - - Value 2 - - - - - - - - Long field - - - - - - This field value could also contribute to duplicate text when expanded. - - - - - - - - - - - - - - Attachment description that might also leak as duplicate plain text. - - - - - - - - - - - - This is the main message body. - - - - - - - - - - - - - - - - -`; - exports[`Story Snapshots: ColoredAttachments should match snapshot 1`] = ` Date: Wed, 4 Feb 2026 16:59:09 -0300 Subject: [PATCH 6/8] cleanup --- app/containers/message/Components/Attachments/Quote.tsx | 2 -- 1 file changed, 2 deletions(-) diff --git a/app/containers/message/Components/Attachments/Quote.tsx b/app/containers/message/Components/Attachments/Quote.tsx index 0ebbd59f9d7..7510000367e 100644 --- a/app/containers/message/Components/Attachments/Quote.tsx +++ b/app/containers/message/Components/Attachments/Quote.tsx @@ -11,8 +11,6 @@ import { getMessageFromAttachment } from '../../utils'; const isQuoteAttachment = (file?: IAttachment): boolean => { if (!file) return false; - if (file.collapsed) return false; - if (!file.color && !file.text && (file.image_url || file.audio_url || file.video_url || file.collapsed)) { return false; } From b72afcb5d52c2cd5ed6946a8cbb62f80b2713fdb Mon Sep 17 00:00:00 2001 From: OtavioStasiak Date: Wed, 4 Feb 2026 17:00:11 -0300 Subject: [PATCH 7/8] cleanup --- app/containers/markdown/components/Katex.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/containers/markdown/components/Katex.tsx b/app/containers/markdown/components/Katex.tsx index bd39709ad16..74b1e697193 100644 --- a/app/containers/markdown/components/Katex.tsx +++ b/app/containers/markdown/components/Katex.tsx @@ -3,7 +3,7 @@ import React from 'react'; import { type StyleProp, type ViewStyle } from 'react-native'; import Katex from 'react-native-katex'; // eslint-disable-next-line import/no-unresolved -import MathView from 'react-native-math-view'; +import MathView, { MathText } from 'react-native-math-view'; import { isAndroid } from '../../../lib/methods/helpers/deviceInfo'; import { useTheme } from '../../../theme'; @@ -45,3 +45,8 @@ export const KaTeX = ({ value }: IKaTeXProps): React.ReactElement | null => { /> ); }; + +export const InlineKaTeX = ({ value }: IKaTeXProps): React.ReactElement | null => { + const { colors } = useTheme(); + return ; +}; \ No newline at end of file From a140244f25c4e440ec0f7b6bf16ab04852dd9ff5 Mon Sep 17 00:00:00 2001 From: OtavioStasiak Date: Wed, 4 Feb 2026 20:01:44 +0000 Subject: [PATCH 8/8] chore: format code and fix lint issues [skip ci] --- app/containers/markdown/components/Katex.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/containers/markdown/components/Katex.tsx b/app/containers/markdown/components/Katex.tsx index 74b1e697193..18ec99cc056 100644 --- a/app/containers/markdown/components/Katex.tsx +++ b/app/containers/markdown/components/Katex.tsx @@ -49,4 +49,4 @@ export const KaTeX = ({ value }: IKaTeXProps): React.ReactElement | null => { export const InlineKaTeX = ({ value }: IKaTeXProps): React.ReactElement | null => { const { colors } = useTheme(); return ; -}; \ No newline at end of file +};