Skip to content

Commit

Permalink
Use new lastActorDisplayName to display alternate text for room inv…
Browse files Browse the repository at this point in the history
…ite actions in LHN
  • Loading branch information
francoisl committed Jan 31, 2024
1 parent 995902a commit 147d1a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/SidebarUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ 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}`;
result.alternateText = `${lastActorDisplayName} ${verb} ${targetAccountIDs.length} ${users}`.trim();

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

0 comments on commit 147d1a0

Please sign in to comment.