From e97aa140260afd05a5c5759e459bf8ff041d89f2 Mon Sep 17 00:00:00 2001 From: chiragsalian Date: Thu, 15 Jul 2021 11:11:32 -0700 Subject: [PATCH] Reverting 3979 --- src/languages/en.js | 1 - src/languages/es.js | 1 - src/libs/actions/Report.js | 4 ++-- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/languages/en.js b/src/languages/en.js index 952e77df8750..2c13b708c404 100755 --- a/src/languages/en.js +++ b/src/languages/en.js @@ -56,7 +56,6 @@ export default { send: 'Send', notifications: 'Notifications', noResultsFound: 'No results found', - deletedCommentMessage: 'Comment deleted', timePrefix: 'It\'s', conjunctionFor: 'for', }, diff --git a/src/languages/es.js b/src/languages/es.js index 678cdd8b2536..de5b415a1fdf 100644 --- a/src/languages/es.js +++ b/src/languages/es.js @@ -52,7 +52,6 @@ export default { send: 'Enviar', notifications: 'Notificaciones', noResultsFound: 'No se han encontrado resultados', - deletedCommentMessage: 'Comentario borrado', timePrefix: 'Son las', conjunctionFor: 'para', }, diff --git a/src/libs/actions/Report.js b/src/libs/actions/Report.js index b7f52429555d..33a8a9ac7832 100644 --- a/src/libs/actions/Report.js +++ b/src/libs/actions/Report.js @@ -172,7 +172,7 @@ function getSimplifiedReportObject(report) { // We convert the line-breaks in html to space ' ' before striping the tags const lastMessageText = lastActionMessage .replace(/((]*>)+)/gi, ' ') - .replace(/(<([^>]+)>)/gi, '') || `[${translateLocal('common.deletedCommentMessage')}]`; + .replace(/(<([^>]+)>)/gi, ''); const reportName = lodashGet(report, ['reportNameValuePairs', 'type']) === 'chat' ? getChatReportName(report, chatType) : report.reportName; @@ -501,7 +501,7 @@ function updateReportActionMessage(reportID, sequenceNumber, message) { // If this is the most recent message, update the lastMessageText in the report object as well if (sequenceNumber === reportMaxSequenceNumbers[reportID]) { Onyx.merge(`${ONYXKEYS.COLLECTION.REPORT}${reportID}`, { - lastMessageText: message.html || `[${translateLocal('common.deletedCommentMessage')}]`, + lastMessageText: message.html, }); } }