Skip to content

Commit

Permalink
Fix archive chats list bidi support.
Browse files Browse the repository at this point in the history
  • Loading branch information
john-preston committed Aug 29, 2024
1 parent a5b06e9 commit 71357a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Telegram/SourceFiles/data/data_folder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,15 @@ constexpr auto kShowChatNamesCount = 8;
);
const auto wrapName = [](not_null<History*> history) {
const auto name = history->peer->name();
return TextWithEntities{
return st::wrap_rtl(TextWithEntities{
.text = name,
.entities = (history->chatListBadgesState().unread
? EntitiesInText{
{ EntityType::Semibold, 0, int(name.size()), QString() },
{ EntityType::Colorized, 0, int(name.size()), QString() },
}
: EntitiesInText{}),
};
});
};
const auto shown = int(peers.size());
const auto accumulated = [&] {
Expand Down

0 comments on commit 71357a9

Please sign in to comment.