Improve condition for using full type name.
This commit is contained in:
parent
8bf00d067f
commit
323e82d099
@ -177,7 +177,7 @@ EOT
|
||||
protected function addFieldDocumentation($class_name, $field_name, $type_name, $field_info, $may_be_null)
|
||||
{
|
||||
$end = ';';
|
||||
if (substr($type_name, 0, strlen($field_name)) === $field_name) {
|
||||
if ($type_name == $field_name.'^' || ($type_name == 'Message^' && $field_name == 'ReplyToMessage')) {
|
||||
$type_name = '::Telegram::Td::Api::'.$type_name;
|
||||
$end = ' {';
|
||||
}
|
||||
|
@ -244,7 +244,7 @@ class TlWriterDotNet final : public TL_writer {
|
||||
if (field_name == class_name) {
|
||||
fixed_field_name += "Value";
|
||||
}
|
||||
if (type_name.substr(0, field_name.size()) == field_name) {
|
||||
if (type_name == field_name + "^" || (type_name == "Message^" && field_name == "ReplyToMessage")) {
|
||||
auto fixed_type_name = "::Telegram::Td::Api::" + type_name;
|
||||
std::stringstream ss;
|
||||
ss << "private:\n";
|
||||
|
Loading…
Reference in New Issue
Block a user