diff --git a/Telegram/SourceFiles/passport/passport_form_controller.cpp b/Telegram/SourceFiles/passport/passport_form_controller.cpp index 8845af4140..31dd9569b6 100644 --- a/Telegram/SourceFiles/passport/passport_form_controller.cpp +++ b/Telegram/SourceFiles/passport/passport_form_controller.cpp @@ -1337,8 +1337,7 @@ void FormController::saveEncryptedValue(not_null value) { } Unexpected("Value type in saveEncryptedValue()."); }(); - const auto flags = ((value->scansInEdit.empty() - && value->data.parsedInEdit.fields.empty()) + const auto flags = (value->data.parsedInEdit.fields.empty() ? MTPDinputSecureValue::Flag(0) : MTPDinputSecureValue::Flag::f_data) | (value->scansInEdit.empty()