From 8ec06a175f7ece202b2a05935022b8ccd0de9688 Mon Sep 17 00:00:00 2001 From: Andrew Gable Date: Wed, 3 May 2023 17:00:35 -0600 Subject: [PATCH] Revert "Fix: Copying the messages and marking a message in between as unread generates 'new' in the text" --- src/components/UnreadActionIndicator.js | 6 +----- src/libs/SelectionScraper/index.js | 4 ---- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/src/components/UnreadActionIndicator.js b/src/components/UnreadActionIndicator.js index ccd3c8037884..b5124155b6be 100755 --- a/src/components/UnreadActionIndicator.js +++ b/src/components/UnreadActionIndicator.js @@ -5,11 +5,7 @@ import Text from './Text'; import withLocalize, {withLocalizePropTypes} from './withLocalize'; const UnreadActionIndicator = props => ( - + {props.translate('common.new')} diff --git a/src/libs/SelectionScraper/index.js b/src/libs/SelectionScraper/index.js index f5c108c79753..2d81d9f6ccf6 100644 --- a/src/libs/SelectionScraper/index.js +++ b/src/libs/SelectionScraper/index.js @@ -2,7 +2,6 @@ import render from 'dom-serializer'; import {parseDocument} from 'htmlparser2'; import _ from 'underscore'; import Str from 'expensify-common/lib/str'; -import styles from '../../styles/styles'; const elementsWillBeSkipped = ['html', 'body']; const tagAttribute = 'data-testid'; @@ -81,9 +80,6 @@ const getHTMLOfSelection = () => { } } - // Remove any element that isn't selectable to prevent copying unnecessary text/items - div.querySelectorAll(`div[style*="user-select: ${styles.userSelectNone.WebkitUserSelect}"]`).forEach(item => item.remove()); - return div.innerHTML; };