Skip to content

Commit

Permalink
Merge pull request #34212 from dukenv0307/fix/33703
Browse files Browse the repository at this point in the history
fix: add actor display name in lhn
  • Loading branch information
stitesExpensify authored Jan 30, 2024
2 parents 5aa3225 + 5e374b0 commit 382679c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/libs/SidebarUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -415,8 +415,9 @@ 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');
result.alternateText = `${verb} ${targetAccountIDs.length} ${users}`;

const actorDisplayName = ReportUtils.getDisplayNameForParticipant(lastAction.actorAccountID);
result.alternateText =
lastAction.actorAccountID === currentUserAccountID ? `${verb} ${targetAccountIDs.length} ${users}` : `${actorDisplayName} ${verb} ${targetAccountIDs.length} ${users}`;
const roomName = lastAction?.originalMessage?.roomName ?? '';
if (roomName) {
const preposition =
Expand Down

0 comments on commit 382679c

Please sign in to comment.