Improve the name of suggestedActionViewChecksHint
.
This commit is contained in:
parent
dcd387c34f
commit
a8b22881e0
@ -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
|
//@description Suggests the user to check whether authorization phone number is correct and change the phone number if it is inaccessible
|
||||||
suggestedActionCheckPhoneNumber = SuggestedAction;
|
suggestedActionCheckPhoneNumber = SuggestedAction;
|
||||||
|
|
||||||
//@description Suggests the user to see a hint about the meaning of one and two ticks on sent messages
|
//@description Suggests the user to view a hint about the meaning of one and two check marks on sent messages
|
||||||
suggestedActionSeeTicksHint = SuggestedAction;
|
suggestedActionViewChecksHint = SuggestedAction;
|
||||||
|
|
||||||
//@description Suggests the user to convert specified supergroup to a broadcast group @supergroup_id Supergroup identifier
|
//@description Suggests the user to convert specified supergroup to a broadcast group @supergroup_id Supergroup identifier
|
||||||
suggestedActionConvertToBroadcastGroup supergroup_id:int53 = SuggestedAction;
|
suggestedActionConvertToBroadcastGroup supergroup_id:int53 = SuggestedAction;
|
||||||
|
@ -35,7 +35,7 @@ SuggestedAction::SuggestedAction(Slice action_str) {
|
|||||||
} else if (action_str == Slice("VALIDATE_PHONE_NUMBER")) {
|
} else if (action_str == Slice("VALIDATE_PHONE_NUMBER")) {
|
||||||
init(Type::CheckPhoneNumber);
|
init(Type::CheckPhoneNumber);
|
||||||
} else if (action_str == Slice("NEWCOMER_TICKS")) {
|
} else if (action_str == Slice("NEWCOMER_TICKS")) {
|
||||||
init(Type::SeeTicksHint);
|
init(Type::ViewChecksHint);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -61,8 +61,8 @@ SuggestedAction::SuggestedAction(const td_api::object_ptr<td_api::SuggestedActio
|
|||||||
case td_api::suggestedActionCheckPhoneNumber::ID:
|
case td_api::suggestedActionCheckPhoneNumber::ID:
|
||||||
init(Type::CheckPhoneNumber);
|
init(Type::CheckPhoneNumber);
|
||||||
break;
|
break;
|
||||||
case td_api::suggestedActionSeeTicksHint::ID:
|
case td_api::suggestedActionViewChecksHint::ID:
|
||||||
init(Type::SeeTicksHint);
|
init(Type::ViewChecksHint);
|
||||||
break;
|
break;
|
||||||
case td_api::suggestedActionConvertToBroadcastGroup::ID: {
|
case td_api::suggestedActionConvertToBroadcastGroup::ID: {
|
||||||
auto action = static_cast<const td_api::suggestedActionConvertToBroadcastGroup *>(suggested_action.get());
|
auto action = static_cast<const td_api::suggestedActionConvertToBroadcastGroup *>(suggested_action.get());
|
||||||
@ -92,7 +92,7 @@ string SuggestedAction::get_suggested_action_str() const {
|
|||||||
return "VALIDATE_PASSWORD";
|
return "VALIDATE_PASSWORD";
|
||||||
case Type::CheckPhoneNumber:
|
case Type::CheckPhoneNumber:
|
||||||
return "VALIDATE_PHONE_NUMBER";
|
return "VALIDATE_PHONE_NUMBER";
|
||||||
case Type::SeeTicksHint:
|
case Type::ViewChecksHint:
|
||||||
return "NEWCOMER_TICKS";
|
return "NEWCOMER_TICKS";
|
||||||
case Type::ConvertToGigagroup:
|
case Type::ConvertToGigagroup:
|
||||||
return "CONVERT_GIGAGROUP";
|
return "CONVERT_GIGAGROUP";
|
||||||
@ -111,8 +111,8 @@ td_api::object_ptr<td_api::SuggestedAction> SuggestedAction::get_suggested_actio
|
|||||||
return td_api::make_object<td_api::suggestedActionCheckPassword>();
|
return td_api::make_object<td_api::suggestedActionCheckPassword>();
|
||||||
case Type::CheckPhoneNumber:
|
case Type::CheckPhoneNumber:
|
||||||
return td_api::make_object<td_api::suggestedActionCheckPhoneNumber>();
|
return td_api::make_object<td_api::suggestedActionCheckPhoneNumber>();
|
||||||
case Type::SeeTicksHint:
|
case Type::ViewChecksHint:
|
||||||
return td_api::make_object<td_api::suggestedActionSeeTicksHint>();
|
return td_api::make_object<td_api::suggestedActionViewChecksHint>();
|
||||||
case Type::ConvertToGigagroup:
|
case Type::ConvertToGigagroup:
|
||||||
return td_api::make_object<td_api::suggestedActionConvertToBroadcastGroup>(dialog_id_.get_channel_id().get());
|
return td_api::make_object<td_api::suggestedActionConvertToBroadcastGroup>(dialog_id_.get_channel_id().get());
|
||||||
case Type::SetPassword:
|
case Type::SetPassword:
|
||||||
@ -171,7 +171,7 @@ void dismiss_suggested_action(SuggestedAction action, Promise<Unit> &&promise) {
|
|||||||
case SuggestedAction::Type::EnableArchiveAndMuteNewChats:
|
case SuggestedAction::Type::EnableArchiveAndMuteNewChats:
|
||||||
case SuggestedAction::Type::CheckPassword:
|
case SuggestedAction::Type::CheckPassword:
|
||||||
case SuggestedAction::Type::CheckPhoneNumber:
|
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),
|
return send_closure_later(G()->config_manager(), &ConfigManager::dismiss_suggested_action, std::move(action),
|
||||||
std::move(promise));
|
std::move(promise));
|
||||||
case SuggestedAction::Type::ConvertToGigagroup:
|
case SuggestedAction::Type::ConvertToGigagroup:
|
||||||
|
@ -21,7 +21,7 @@ struct SuggestedAction {
|
|||||||
Empty,
|
Empty,
|
||||||
EnableArchiveAndMuteNewChats,
|
EnableArchiveAndMuteNewChats,
|
||||||
CheckPhoneNumber,
|
CheckPhoneNumber,
|
||||||
SeeTicksHint,
|
ViewChecksHint,
|
||||||
ConvertToGigagroup,
|
ConvertToGigagroup,
|
||||||
CheckPassword,
|
CheckPassword,
|
||||||
SetPassword
|
SetPassword
|
||||||
|
@ -1393,8 +1393,8 @@ class CliClient final : public Actor {
|
|||||||
if (action == "number") {
|
if (action == "number") {
|
||||||
return td_api::make_object<td_api::suggestedActionCheckPhoneNumber>();
|
return td_api::make_object<td_api::suggestedActionCheckPhoneNumber>();
|
||||||
}
|
}
|
||||||
if (action == "ticks") {
|
if (action == "checks") {
|
||||||
return td_api::make_object<td_api::suggestedActionSeeTicksHint>();
|
return td_api::make_object<td_api::suggestedActionViewChecksHint>();
|
||||||
}
|
}
|
||||||
if (begins_with(action, "giga")) {
|
if (begins_with(action, "giga")) {
|
||||||
return td_api::make_object<td_api::suggestedActionConvertToBroadcastGroup>(as_supergroup_id(action.substr(4)));
|
return td_api::make_object<td_api::suggestedActionConvertToBroadcastGroup>(as_supergroup_id(action.substr(4)));
|
||||||
|
Loading…
Reference in New Issue
Block a user