Skip to content

Commit

Permalink
Expensify#3293 add comment for last message html manipulations
Browse files Browse the repository at this point in the history
  • Loading branch information
dklymenk committed Jun 15, 2021
1 parent d7250c5 commit 71867f6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/libs/actions/Report.js
Original file line number Diff line number Diff line change
Expand Up @@ -1103,6 +1103,7 @@ function deleteReportComment(reportID, reportAction) {
// Populate last message details
const lastMessageDetails = {};
if (lastReportAction) {
// Replace line breaks with spaces and remove all HTML from the message
lastMessageDetails.lastMessageText = lastReportAction.isAttachment
? '[Attachment]'
: _.last(lastReportAction.message)
Expand Down

0 comments on commit 71867f6

Please sign in to comment.