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); }