From 7f2bba7c4a86f4c246f5bdcdac4358747dbeea41 Mon Sep 17 00:00:00 2001 From: 23rd <23rd@vivaldi.net> Date: Wed, 2 Apr 2025 00:18:28 +0300 Subject: [PATCH] Fixed ttl phrase for 1 year. --- Telegram/SourceFiles/ui/text/format_values.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/ui/text/format_values.cpp b/Telegram/SourceFiles/ui/text/format_values.cpp index 564e5013f8..d25e571f18 100644 --- a/Telegram/SourceFiles/ui/text/format_values.cpp +++ b/Telegram/SourceFiles/ui/text/format_values.cpp @@ -414,7 +414,7 @@ QString FormatTTL(float64 ttl) { + ' ' + tr::lng_days(tr::now, lt_count, int(days % 7)); } - } else if (ttl < (86400 * 31) * 12) { + } else if (ttl <= (86400 * 31) * 11) { return tr::lng_months(tr::now, lt_count, int(ttl / (86400 * 31))); } else { return tr::lng_years({}, lt_count, std::round(ttl / (86400 * 365)));