From c3587ff46f6339082b9bfa6d9698fa169d26ba57 Mon Sep 17 00:00:00 2001 From: John Preston Date: Thu, 9 Jan 2025 22:38:18 +0400 Subject: [PATCH] Fix years in affiliate program creation. --- .../info/bot/starref/info_bot_starref_setup_widget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/info/bot/starref/info_bot_starref_setup_widget.cpp b/Telegram/SourceFiles/info/bot/starref/info_bot_starref_setup_widget.cpp index e3ca2b63adfc7..409373713d0bf 100644 --- a/Telegram/SourceFiles/info/bot/starref/info_bot_starref_setup_widget.cpp +++ b/Telegram/SourceFiles/info/bot/starref/info_bot_starref_setup_widget.cpp @@ -692,7 +692,7 @@ void InnerWidget::setupDuration() { return (value < 12) ? tr::lng_months_tiny(tr::now, lt_count, value) : (value < 999) - ? tr::lng_years_tiny(tr::now, lt_count, value) + ? tr::lng_years_tiny(tr::now, lt_count, value / 12) : QString::fromUtf8("\xE2\x88\x9E"); // utf-8 infinity }; _container->add(