Fix archive chats list bidi support.

This commit is contained in:
John Preston 2024-08-29 17:48:06 +04:00
parent a5b06e9c56
commit 71357a9546

View file

@ -70,7 +70,7 @@ constexpr auto kShowChatNamesCount = 8;
); );
const auto wrapName = [](not_null<History*> history) { const auto wrapName = [](not_null<History*> history) {
const auto name = history->peer->name(); const auto name = history->peer->name();
return TextWithEntities{ return st::wrap_rtl(TextWithEntities{
.text = name, .text = name,
.entities = (history->chatListBadgesState().unread .entities = (history->chatListBadgesState().unread
? EntitiesInText{ ? EntitiesInText{
@ -78,7 +78,7 @@ constexpr auto kShowChatNamesCount = 8;
{ EntityType::Colorized, 0, int(name.size()), QString() }, { EntityType::Colorized, 0, int(name.size()), QString() },
} }
: EntitiesInText{}), : EntitiesInText{}),
}; });
}; };
const auto shown = int(peers.size()); const auto shown = int(peers.size());
const auto accumulated = [&] { const auto accumulated = [&] {