From 9f887237eb0a2f23f796666ffebd5b728a7ee255 Mon Sep 17 00:00:00 2001 From: John Preston Date: Tue, 4 Jan 2022 11:15:09 +0300 Subject: [PATCH] Remove a couple of unused lang keys. --- Telegram/Resources/langs/lang.strings | 2 -- Telegram/SourceFiles/history/history_service.cpp | 8 ++------ 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/Telegram/Resources/langs/lang.strings b/Telegram/Resources/langs/lang.strings index 7362ce1d2..b01c293ec 100644 --- a/Telegram/Resources/langs/lang.strings +++ b/Telegram/Resources/langs/lang.strings @@ -1254,10 +1254,8 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL "lng_action_you_proximity_reached" = "You are now within {distance} from {user}"; "lng_action_you_theme_changed" = "You changed chat theme to {emoji}"; "lng_action_theme_changed" = "{from} changed chat theme to {emoji}"; -"lng_action_theme_changed_channel" = "Channel theme changed to {emoji}"; "lng_action_you_theme_disabled" = "You disabled chat theme"; "lng_action_theme_disabled" = "{from} disabled chat theme"; -"lng_action_theme_disabled_channel" = "Channel theme disabled"; "lng_action_proximity_distance_m#one" = "{count} meter"; "lng_action_proximity_distance_m#other" = "{count} metres"; "lng_action_proximity_distance_km#one" = "{count} km"; diff --git a/Telegram/SourceFiles/history/history_service.cpp b/Telegram/SourceFiles/history/history_service.cpp index f2cd05962..58ebf3609 100644 --- a/Telegram/SourceFiles/history/history_service.cpp +++ b/Telegram/SourceFiles/history/history_service.cpp @@ -435,18 +435,14 @@ void HistoryService::setMessageByAction(const MTPmessageAction &action) { auto result = PreparedText{}; const auto text = qs(action.vemoticon()); if (!text.isEmpty()) { - if (isPost()) { - result.text = tr::lng_action_theme_changed_channel(tr::now, lt_emoji, text); - } else if (_from->isSelf()) { + if (_from->isSelf()) { result.text = tr::lng_action_you_theme_changed(tr::now, lt_emoji, text); } else { result.links.push_back(fromLink()); result.text = tr::lng_action_theme_changed(tr::now, lt_from, fromLinkText(), lt_emoji, text); } } else { - if (isPost()) { - result.text = tr::lng_action_theme_disabled_channel(tr::now); - } else if (_from->isSelf()) { + if (_from->isSelf()) { result.text = tr::lng_action_you_theme_disabled(tr::now); } else { result.links.push_back(fromLink());