From a8b22881e06e62e197e528eec73eb0496312c24d Mon Sep 17 00:00:00 2001 From: levlam Date: Thu, 23 Dec 2021 20:00:41 +0300 Subject: [PATCH] Improve the name of `suggestedActionViewChecksHint`. --- td/generate/scheme/td_api.tl | 4 ++-- td/telegram/SuggestedAction.cpp | 14 +++++++------- td/telegram/SuggestedAction.h | 2 +- td/telegram/cli.cpp | 4 ++-- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/td/generate/scheme/td_api.tl b/td/generate/scheme/td_api.tl index 4e41ffcd5..71476a981 100644 --- a/td/generate/scheme/td_api.tl +++ b/td/generate/scheme/td_api.tl @@ -3470,8 +3470,8 @@ suggestedActionCheckPassword = SuggestedAction; //@description Suggests the user to check whether authorization phone number is correct and change the phone number if it is inaccessible suggestedActionCheckPhoneNumber = SuggestedAction; -//@description Suggests the user to see a hint about the meaning of one and two ticks on sent messages -suggestedActionSeeTicksHint = SuggestedAction; +//@description Suggests the user to view a hint about the meaning of one and two check marks on sent messages +suggestedActionViewChecksHint = SuggestedAction; //@description Suggests the user to convert specified supergroup to a broadcast group @supergroup_id Supergroup identifier suggestedActionConvertToBroadcastGroup supergroup_id:int53 = SuggestedAction; diff --git a/td/telegram/SuggestedAction.cpp b/td/telegram/SuggestedAction.cpp index 04271e79d..cbda982e2 100644 --- a/td/telegram/SuggestedAction.cpp +++ b/td/telegram/SuggestedAction.cpp @@ -35,7 +35,7 @@ SuggestedAction::SuggestedAction(Slice action_str) { } else if (action_str == Slice("VALIDATE_PHONE_NUMBER")) { init(Type::CheckPhoneNumber); } else if (action_str == Slice("NEWCOMER_TICKS")) { - init(Type::SeeTicksHint); + init(Type::ViewChecksHint); } } @@ -61,8 +61,8 @@ SuggestedAction::SuggestedAction(const td_api::object_ptr(suggested_action.get()); @@ -92,7 +92,7 @@ string SuggestedAction::get_suggested_action_str() const { return "VALIDATE_PASSWORD"; case Type::CheckPhoneNumber: return "VALIDATE_PHONE_NUMBER"; - case Type::SeeTicksHint: + case Type::ViewChecksHint: return "NEWCOMER_TICKS"; case Type::ConvertToGigagroup: return "CONVERT_GIGAGROUP"; @@ -111,8 +111,8 @@ td_api::object_ptr SuggestedAction::get_suggested_actio return td_api::make_object(); case Type::CheckPhoneNumber: return td_api::make_object(); - case Type::SeeTicksHint: - return td_api::make_object(); + case Type::ViewChecksHint: + return td_api::make_object(); case Type::ConvertToGigagroup: return td_api::make_object(dialog_id_.get_channel_id().get()); case Type::SetPassword: @@ -171,7 +171,7 @@ void dismiss_suggested_action(SuggestedAction action, Promise &&promise) { case SuggestedAction::Type::EnableArchiveAndMuteNewChats: case SuggestedAction::Type::CheckPassword: case SuggestedAction::Type::CheckPhoneNumber: - case SuggestedAction::Type::SeeTicksHint: + case SuggestedAction::Type::ViewChecksHint: return send_closure_later(G()->config_manager(), &ConfigManager::dismiss_suggested_action, std::move(action), std::move(promise)); case SuggestedAction::Type::ConvertToGigagroup: diff --git a/td/telegram/SuggestedAction.h b/td/telegram/SuggestedAction.h index ec71aa6a8..dd95a9ff2 100644 --- a/td/telegram/SuggestedAction.h +++ b/td/telegram/SuggestedAction.h @@ -21,7 +21,7 @@ struct SuggestedAction { Empty, EnableArchiveAndMuteNewChats, CheckPhoneNumber, - SeeTicksHint, + ViewChecksHint, ConvertToGigagroup, CheckPassword, SetPassword diff --git a/td/telegram/cli.cpp b/td/telegram/cli.cpp index 350654a8a..861d4953a 100644 --- a/td/telegram/cli.cpp +++ b/td/telegram/cli.cpp @@ -1393,8 +1393,8 @@ class CliClient final : public Actor { if (action == "number") { return td_api::make_object(); } - if (action == "ticks") { - return td_api::make_object(); + if (action == "checks") { + return td_api::make_object(); } if (begins_with(action, "giga")) { return td_api::make_object(as_supergroup_id(action.substr(4)));