Skip to content

Commit

Permalink
Merge pull request #35447 from Expensify/revert-34212-fix/33703
Browse files Browse the repository at this point in the history
Revert "fix: add actor display name in lhn"
  • Loading branch information
yuwenmemon authored Jan 31, 2024
2 parents 715bc2f + 429f43f commit 953b313
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/libs/SidebarUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -373,9 +373,8 @@ function getOptionData({
? Localize.translate(preferredLocale, 'workspace.invite.invited')
: Localize.translate(preferredLocale, 'workspace.invite.removed');
const users = Localize.translate(preferredLocale, targetAccountIDs.length > 1 ? 'workspace.invite.users' : 'workspace.invite.user');
const actorDisplayName = ReportUtils.getDisplayNameForParticipant(lastAction.actorAccountID);
result.alternateText =
lastAction.actorAccountID === currentUserAccountID ? `${verb} ${targetAccountIDs.length} ${users}` : `${actorDisplayName} ${verb} ${targetAccountIDs.length} ${users}`;
result.alternateText = `${verb} ${targetAccountIDs.length} ${users}`;

const roomName = lastAction?.originalMessage?.roomName ?? '';
if (roomName) {
const preposition =
Expand Down

0 comments on commit 953b313

Please sign in to comment.