@@ -8,14 +8,9 @@ import TextWithEmojiFragment from '@pages/home/report/comment/TextWithEmojiFragm
88import type DisplayNamesProps from './types' ;
99
1010// As we don't have to show tooltips of the Native platform so we simply render the full display names list.
11- function DisplayNames ( { accessibilityLabel, fullTitle, textStyles = [ ] , numberOfLines = 1 , renderAdditionalText, forwardedFSClass, testID, shouldParseFullTitle = true } : DisplayNamesProps ) {
11+ function DisplayNames ( { accessibilityLabel, fullTitle, textStyles = [ ] , numberOfLines = 1 , renderAdditionalText, forwardedFSClass, testID} : DisplayNamesProps ) {
1212 const { translate} = useLocalize ( ) ;
1313 const titleContainsTextAndCustomEmoji = useMemo ( ( ) => containsCustomEmoji ( fullTitle ) && ! containsOnlyCustomEmoji ( fullTitle ) , [ fullTitle ] ) ;
14- const title = useMemo ( ( ) => {
15- const processedTitle = shouldParseFullTitle ? Parser . htmlToText ( fullTitle ) : fullTitle ;
16- return StringUtils . lineBreaksToSpaces ( processedTitle ) || translate ( 'common.hidden' ) ;
17- } , [ fullTitle , shouldParseFullTitle , translate ] ) ;
18-
1914 return (
2015 < Text
2116 accessibilityLabel = { accessibilityLabel }
@@ -26,11 +21,11 @@ function DisplayNames({accessibilityLabel, fullTitle, textStyles = [], numberOfL
2621 >
2722 { titleContainsTextAndCustomEmoji ? (
2823 < TextWithEmojiFragment
29- message = { title }
24+ message = { StringUtils . lineBreaksToSpaces ( Parser . htmlToText ( fullTitle ) ) || translate ( 'common.hidden' ) }
3025 style = { textStyles }
3126 />
3227 ) : (
33- title
28+ StringUtils . lineBreaksToSpaces ( Parser . htmlToText ( fullTitle ) ) || translate ( 'common.hidden' )
3429 ) }
3530 { renderAdditionalText ?.( ) }
3631 </ Text >
0 commit comments