You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-08-09 08:42:50 +03:00
Fix avatar text issue in rte (#10559)
* replace - with zwsp * improve comments * fix broken tests * fix typo
This commit is contained in:
@@ -173,7 +173,7 @@ describe("getMentionAttributes", () => {
|
||||
|
||||
expect(result).toEqual({
|
||||
"data-mention-type": "user",
|
||||
"style": `--avatar-background: url(${testAvatarUrlForMember}); --avatar-letter: '-'`,
|
||||
"style": `--avatar-background: url(${testAvatarUrlForMember}); --avatar-letter: '\u200b'`,
|
||||
});
|
||||
});
|
||||
|
||||
@@ -200,7 +200,7 @@ describe("getMentionAttributes", () => {
|
||||
|
||||
expect(result).toEqual({
|
||||
"data-mention-type": "room",
|
||||
"style": `--avatar-background: url(${testAvatarUrlForRoom}); --avatar-letter: '-'`,
|
||||
"style": `--avatar-background: url(${testAvatarUrlForRoom}); --avatar-letter: '\u200b'`,
|
||||
});
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user