From 6183569dc269a6146e15bfcd69360d5a059209e8 Mon Sep 17 00:00:00 2001 From: 23rd <23rd@vivaldi.net> Date: Fri, 26 Sep 2025 13:49:51 +0300 Subject: [PATCH] Slightly improved phrases in subtitle of to-do list. --- Telegram/Resources/langs/lang.strings | 1 + .../history/view/media/history_view_todo_list.cpp | 8 +++++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Telegram/Resources/langs/lang.strings b/Telegram/Resources/langs/lang.strings index b45f370ed0..78cbfcbe8f 100644 --- a/Telegram/Resources/langs/lang.strings +++ b/Telegram/Resources/langs/lang.strings @@ -6176,6 +6176,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL "lng_todo_title" = "Checklist"; "lng_todo_title_group" = "Group Checklist"; +"lng_todo_title_user" = "Checklist"; "lng_todo_completed#one" = "{count} of {total} completed"; "lng_todo_completed#other" = "{count} of {total} completed"; "lng_todo_completed_none" = "None of {total} completed"; diff --git a/Telegram/SourceFiles/history/view/media/history_view_todo_list.cpp b/Telegram/SourceFiles/history/view/media/history_view_todo_list.cpp index e468a46eae..4a2207c9e9 100644 --- a/Telegram/SourceFiles/history/view/media/history_view_todo_list.cpp +++ b/Telegram/SourceFiles/history/view/media/history_view_todo_list.cpp @@ -279,9 +279,11 @@ void TodoList::updateTexts() { _flags = _todolist->flags(); _subtitle.setText( st::msgDateTextStyle, - (_todolist->othersCanComplete() - ? tr::lng_todo_title_group(tr::now) - : tr::lng_todo_title(tr::now))); + (!_todolist->othersCanComplete() + ? tr::lng_todo_title(tr::now) + : _parent->data()->history()->peer->isUser() + ? tr::lng_todo_title_user(tr::now) + : tr::lng_todo_title_group(tr::now))); } updateTasks(skipAnimations); }