Open CrystalGamma opened 10 months ago
The same issue is also present in message previews (the actual message begins with "[I] <":
Yeah, this is because we want to be able to render emojis in the room list and that is hard with the current qt without converting the text to html and with html eliding doesn't work, so we do a dirty substring hack....
Is it something that would be fixed by using a Qt 6 API, once distros start shipping that (presumably in conjunction with Plasma 6)?
Anyway, knowing this background, if you think this is better tracked somewhere else, feel free to close this issue.
Describe the bug
HTML/XML escapes in Room names are visible in the room list if they are ellipsized.
To Reproduce
#pine64-nutcracker:matrix.org
in my case.&am…
in my case)What happened?
It appears to me that ellipsization is done on the escaped text, even though the unescaped form of the ellipsized text is eventually displayed (note the unused space after the ellipsized text in the case where unescaping does take place).
Expected behavior
Room names should be always be unescaped in the room list. Ellipsization should not be based on the escaped form of the text.
Screenshots
Bad:
Good (but a lot of free space after the ellipsized text):
Version
0.11.3
Operating system
Linux
Installation method
Some repository (AUR, homebrew, distribution repository, PPA, etc)
Qt version
No response
C++ compiler
No response
Desktop Environment
KDE
Did you use profiles?
Relevant log output
No response
Backtrace
No response