From 4ba4b77b95e6e44ecf8f75495c613d16b0b28552 Mon Sep 17 00:00:00 2001 From: 23rd <23rd@vivaldi.net> Date: Mon, 17 Jan 2022 10:07:47 +0300 Subject: [PATCH] Fixed formatting of text in entry of archived folder. Fixed #23906. --- Telegram/SourceFiles/dialogs/dialogs_row.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Telegram/SourceFiles/dialogs/dialogs_row.cpp b/Telegram/SourceFiles/dialogs/dialogs_row.cpp index 4b77dfc2d..716c45eec 100644 --- a/Telegram/SourceFiles/dialogs/dialogs_row.cpp +++ b/Telegram/SourceFiles/dialogs/dialogs_row.cpp @@ -46,7 +46,7 @@ namespace { .entities = (history->unreadCount() > 0) ? EntitiesInText{ { EntityType::Semibold, 0, int(name.size()), QString() }, - { EntityType::CustomUrl, 0, int(name.size()), QString() }, + { EntityType::PlainLink, 0, int(name.size()), QString() }, } : EntitiesInText{} }; @@ -293,7 +293,8 @@ void Row::validateListEntryCache() const { _listEntryCache.setMarkedText( st::dialogsTextStyle, ComposeFolderListEntryText(folder), - Ui::DialogTextOptions()); + // Use rich options as long as the entry text does not have user text. + Ui::ItemTextDefaultOptions()); } FakeRow::FakeRow(Key searchInChat, not_null item)