Skip to content

Commit

Permalink
Merge pull request #33468 from Expensify/cristi_fix-links-in-welcomeNote
Browse files Browse the repository at this point in the history
Parse welcomeNote before sending to Web
  • Loading branch information
aldo-expensify authored Jan 8, 2024
2 parents 0132a89 + 18112ea commit 3bd747d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/libs/actions/Policy.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import {PUBLIC_DOMAINS} from 'expensify-common/lib/CONST';
import ExpensiMark from 'expensify-common/lib/ExpensiMark';
import Str from 'expensify-common/lib/str';
import {escapeRegExp} from 'lodash';
import filter from 'lodash/filter';
Expand Down Expand Up @@ -616,10 +617,7 @@ function addMembersToWorkspace(invitedEmailsToAccountIDs, welcomeNote, policyID)

const params = {
employees: JSON.stringify(_.map(logins, (login) => ({email: login}))),

// Do not escape HTML special chars for welcomeNote as this will be handled in the backend.
// See https://github.com/Expensify/App/issues/20081 for more details.
welcomeNote,
welcomeNote: new ExpensiMark().replace(welcomeNote),
policyID,
};
if (!_.isEmpty(membersChats.reportCreationData)) {
Expand Down

0 comments on commit 3bd747d

Please sign in to comment.