mtproto::Transport: bugfix

GitOrigin-RevId: ea53041b64a84292830e25e111bdbd31d21f1911
This commit is contained in:
Arseny Smirnov 2018-06-20 00:00:02 +03:00
parent 1f9052f85b
commit 9d5dd09fd7

View File

@ -309,8 +309,7 @@ Result<Transport::ReadResult> Transport::read(MutableSlice message, const AuthKe
MutableSlice data;
if (info->type == PacketInfo::EndToEnd) {
TRY_STATUS(read_e2e_crypto(message, auth_key, info, &data));
}
if (info->no_crypto_flag) {
} else if (info->no_crypto_flag) {
TRY_STATUS(read_no_crypto(message, info, &data));
} else {
if (auth_key.empty()) {