Don't send data in address_document.

This commit is contained in:
John Preston 2018-04-18 22:25:58 +04:00
parent 60582a24ab
commit 4a8b6ff5ba

View File

@ -1337,8 +1337,7 @@ void FormController::saveEncryptedValue(not_null<Value*> value) {
} }
Unexpected("Value type in saveEncryptedValue()."); Unexpected("Value type in saveEncryptedValue().");
}(); }();
const auto flags = ((value->scansInEdit.empty() const auto flags = (value->data.parsedInEdit.fields.empty()
&& value->data.parsedInEdit.fields.empty())
? MTPDinputSecureValue::Flag(0) ? MTPDinputSecureValue::Flag(0)
: MTPDinputSecureValue::Flag::f_data) : MTPDinputSecureValue::Flag::f_data)
| (value->scansInEdit.empty() | (value->scansInEdit.empty()