From 56fece62166a37d540bc92d7ecc4af1c63d67cb5 Mon Sep 17 00:00:00 2001 From: John Preston Date: Thu, 8 Mar 2018 15:55:05 +0300 Subject: [PATCH] Move from req_pq to req_pq_multi in protocol impl. --- Telegram/Resources/scheme.tl | 1 + Telegram/SourceFiles/mtproto/connection.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Telegram/Resources/scheme.tl b/Telegram/Resources/scheme.tl index 18b69036d5..c92b4f89f9 100644 --- a/Telegram/Resources/scheme.tl +++ b/Telegram/Resources/scheme.tl @@ -54,6 +54,7 @@ destroy_auth_key_fail#ea109b13 = DestroyAuthKeyRes; ---functions--- req_pq#60469778 nonce:int128 = ResPQ; +req_pq_multi#be7e8ef1 nonce:int128 = ResPQ; req_DH_params#d712e4be nonce:int128 server_nonce:int128 p:string q:string public_key_fingerprint:long encrypted_data:string = Server_DH_Params; diff --git a/Telegram/SourceFiles/mtproto/connection.cpp b/Telegram/SourceFiles/mtproto/connection.cpp index 767b6f07c5..8998282369 100644 --- a/Telegram/SourceFiles/mtproto/connection.cpp +++ b/Telegram/SourceFiles/mtproto/connection.cpp @@ -2386,7 +2386,7 @@ void ConnectionPrivate::updateAuthKey() { _authKeyData->req_num = 0; _authKeyData->nonce = rand_value(); - MTPReq_pq req_pq; + MTPReq_pq_multi req_pq; req_pq.vnonce = _authKeyData->nonce; connect(_conn, SIGNAL(receivedData()), this, SLOT(pqAnswered()));