From e8d87d37bb347795bbb9f0109e23acd77b2a1d75 Mon Sep 17 00:00:00 2001 From: John Preston Date: Mon, 21 Oct 2024 11:55:53 +0400 Subject: [PATCH] Use a shorter phrase for bot policy. --- Telegram/Resources/langs/lang.strings | 1 + Telegram/SourceFiles/info/profile/info_profile_actions.cpp | 1 - Telegram/SourceFiles/ui/chat/attach/attach_bot_webview.cpp | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Telegram/Resources/langs/lang.strings b/Telegram/Resources/langs/lang.strings index 5478c34fc..e42eaaf6a 100644 --- a/Telegram/Resources/langs/lang.strings +++ b/Telegram/Resources/langs/lang.strings @@ -3363,6 +3363,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL "lng_bot_settings" = "Settings"; "lng_bot_open" = "Open Bot"; "lng_bot_terms" = "Terms of Use"; +"lng_bot_privacy" = "Privacy Policy"; "lng_bot_reload_page" = "Reload Page"; "lng_bot_add_to_menu" = "{bot} asks your permission to be added as an option to your attachment menu so you can access it from any chat."; "lng_bot_add_to_menu_done" = "Bot added to the menu."; diff --git a/Telegram/SourceFiles/info/profile/info_profile_actions.cpp b/Telegram/SourceFiles/info/profile/info_profile_actions.cpp index 7dd61c6da..ac8196618 100644 --- a/Telegram/SourceFiles/info/profile/info_profile_actions.cpp +++ b/Telegram/SourceFiles/info/profile/info_profile_actions.cpp @@ -2095,7 +2095,6 @@ void ActionsFiller::addBotCommandActions(not_null user) { rpl::single(true), openPrivacyPolicy, nullptr); - } void ActionsFiller::addReportAction() { diff --git a/Telegram/SourceFiles/ui/chat/attach/attach_bot_webview.cpp b/Telegram/SourceFiles/ui/chat/attach/attach_bot_webview.cpp index fafb8d4b5..0081928a8 100644 --- a/Telegram/SourceFiles/ui/chat/attach/attach_bot_webview.cpp +++ b/Telegram/SourceFiles/ui/chat/attach/attach_bot_webview.cpp @@ -592,7 +592,7 @@ bool Panel::showWebview( callback(tr::lng_bot_terms(tr::now), [=] { File::OpenUrl(tr::lng_mini_apps_tos_url(tr::now)); }, &st::menuIconGroupLog); - callback(tr::lng_profile_bot_privacy(tr::now), [=] { + callback(tr::lng_bot_privacy(tr::now), [=] { _delegate->botOpenPrivacyPolicy(); }, &st::menuIconAntispam); }