Fix displayname calculation around RTL / unhomoglyth. (#2953)

This commit is contained in:
Will Hunt
2025-01-16 17:26:58 +00:00
committed by GitHub
parent 723fa290ff
commit 3189bdba2a
4 changed files with 24 additions and 15 deletions

View File

@@ -886,7 +886,10 @@ test("should disambiguate users with invisible characters", () => {
b: new Map([
[carolId, carol.userId],
[bobId, `Bob (${bob.userId})`],
[bobZeroWidthSpaceId, `Bob (${bobZeroWidthSpace.userId})`],
[
bobZeroWidthSpaceId,
`${bobZeroWidthSpace.rawDisplayName} (${bobZeroWidthSpace.userId})`,
],
]),
},
);