2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-02 15:35:51 +00:00

Removed TextParseRichText.

This commit is contained in:
23rd
2022-01-07 06:50:06 +03:00
committed by John Preston
parent e1aa08b985
commit e11904e05b
14 changed files with 21 additions and 37 deletions

View File

@@ -820,14 +820,14 @@ void Notification::updateNotifyDisplay() {
lt_count,
_forwardedCount))
: QString()));
const auto Options = TextParseOptions{
TextParseRichText
| (_forwardedCount > 1 ? TextParseMultiline : 0),
const auto options = TextParseOptions{
TextParsePlainLinks
| (_forwardedCount > 1 ? TextParseMultiline : 0),
0,
0,
Qt::LayoutDirectionAuto,
};
itemTextCache.setMarkedText(st::dialogsTextStyle, text, Options);
itemTextCache.setMarkedText(st::dialogsTextStyle, text, options);
itemTextCache.drawElided(
p,
r.left(),