Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/pages/home/report/ReportActionItemSingle.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const showUserDetails = (email) => {
};

const ReportActionItemSingle = (props) => {
const actorEmail = props.action.actorEmail.replace(CONST.REGEX.MERGED_ACCOUNT_PREFIX, '');
const actorEmail = props.action.actorEmail;
const {
avatar,
displayName,
Expand All @@ -68,6 +68,11 @@ const ReportActionItemSingle = (props) => {
? [{type: 'TEXT', text: Str.isSMSLogin(login) ? props.toLocalPhone(displayName) : displayName}]
: props.action.person;

// If the chat is from merged user, remove the MERGED prefix from the display name.
if (personArray[0] && personArray[0].text.replace(CONST.REGEX.MERGED_ACCOUNT_PREFIX, '')) {
personArray[0].text = personArray[0].text.replace(CONST.REGEX.MERGED_ACCOUNT_PREFIX, '');
}

return (
<View style={props.wrapperStyles}>
<Pressable
Expand Down