@@ -11,7 +11,7 @@ import useTheme from '@hooks/useTheme';
1111import useThemeStyles from '@hooks/useThemeStyles' ;
1212import convertToLTR from '@libs/convertToLTR' ;
1313import { canUseTouchScreen } from '@libs/DeviceCapabilities' ;
14- import { containsCustomEmoji , containsOnlyCustomEmoji as containsOnlyCustomEmojiUtil , containsOnlyEmojis as containsOnlyEmojisUtil , splitTextWithEmojis } from '@libs/EmojiUtils' ;
14+ import { containsOnlyCustomEmoji as containsOnlyCustomEmojiUtil , containsOnlyEmojis as containsOnlyEmojisUtil , splitTextWithEmojis } from '@libs/EmojiUtils' ;
1515import Parser from '@libs/Parser' ;
1616import Performance from '@libs/Performance' ;
1717import { getHtmlWithAttachmentID , getTextFromHtml } from '@libs/ReportActionsUtils' ;
@@ -76,7 +76,7 @@ function TextCommentFragment({fragment, styleAsDeleted, reportActionID, styleAsM
7676 const containsOnlyEmojis = containsOnlyEmojisUtil ( text ?? '' ) ;
7777 const containsOnlyCustomEmoji = useMemo ( ( ) => containsOnlyCustomEmojiUtil ( text ) , [ text ] ) ;
7878 const containsEmojis = CONST . REGEX . ALL_EMOJIS . test ( text ?? '' ) ;
79- if ( ! shouldRenderAsText ( html , text ?? '' ) && ! ( containsOnlyEmojis && styleAsDeleted ) && ( containsOnlyEmojis || ! containsCustomEmoji ( text ) ) ) {
79+ if ( ! shouldRenderAsText ( html , text ?? '' ) && ! ( containsOnlyEmojis && styleAsDeleted ) ) {
8080 const editedTag = fragment ?. isEdited ? `<edited ${ styleAsDeleted ? 'deleted' : '' } ></edited>` : '' ;
8181 // We need to replace the space at the beginning of each line with
8282 const escapedHtml = html . replaceAll ( / ( ^ | < b r \/ > ) [ ] + / gm, ( match : string , p1 : string ) => p1 + ' ' . repeat ( match . length - p1 . length ) ) ;
0 commit comments