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
1 changed files with 1 additions and 2 deletions

View File

@ -1337,8 +1337,7 @@ void FormController::saveEncryptedValue(not_null<Value*> 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()