From 429f43f7985a2b42f305108d9457bcf46bd2633c Mon Sep 17 00:00:00 2001 From: Francois Laithier Date: Tue, 30 Jan 2024 17:46:45 -0800 Subject: [PATCH] Revert "fix: add actor display name in lhn" --- src/libs/SidebarUtils.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/libs/SidebarUtils.ts b/src/libs/SidebarUtils.ts index 958570e6c936..9119907e9393 100644 --- a/src/libs/SidebarUtils.ts +++ b/src/libs/SidebarUtils.ts @@ -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 =