2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-05 08:55:59 +00:00

Don't force LTR direction on texts.

This commit is contained in:
John Preston
2024-08-22 10:41:47 +02:00
parent 24b0b33f1d
commit c131d6637d
10 changed files with 47 additions and 28 deletions

View File

@@ -100,9 +100,9 @@ struct AlbumCounts {
if (caption.text.isEmpty()) {
return Ui::Text::Colorized(attachType);
}
auto wrapped = st::wrap_rtl(caption);
return hasMiniImages
? caption
? wrapped
: tr::lng_dialogs_text_media(
tr::now,
lt_media_part,
@@ -112,7 +112,7 @@ struct AlbumCounts {
Ui::Text::Colorized(attachType),
Ui::Text::WithEntities),
lt_caption,
caption,
wrapped,
Ui::Text::WithEntities);
}