Remove auth_key_id from PacketInfo.
This commit is contained in:
parent
31f778e040
commit
a1d0808d9f
@ -13,7 +13,6 @@ namespace mtproto {
|
||||
|
||||
struct PacketInfo {
|
||||
enum { Common, EndToEnd } type = Common;
|
||||
uint64 auth_key_id{0};
|
||||
uint32 message_ack{0};
|
||||
|
||||
uint64 salt{0};
|
||||
|
@ -443,8 +443,7 @@ Result<Transport::ReadResult> Transport::read(MutableSlice message, const AuthKe
|
||||
}
|
||||
}
|
||||
|
||||
info->auth_key_id = as<int64>(message.begin());
|
||||
info->no_crypto_flag = info->auth_key_id == 0;
|
||||
info->no_crypto_flag = as<int64>(message.begin()) == 0;
|
||||
MutableSlice data;
|
||||
if (info->type == PacketInfo::EndToEnd) {
|
||||
TRY_STATUS(read_e2e_crypto(message, auth_key, info, &data));
|
||||
|
Loading…
x
Reference in New Issue
Block a user