From bc3e312a1c3d8a93e7c1d70bdf00271e41966c38 Mon Sep 17 00:00:00 2001 From: Arseny Smirnov Date: Sun, 17 Mar 2019 08:50:17 +1300 Subject: [PATCH] bugfix GitOrigin-RevId: 685e9ffa641803684f9fc98b80508adf9ded2895 --- td/telegram/net/SessionProxy.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/td/telegram/net/SessionProxy.cpp b/td/telegram/net/SessionProxy.cpp index 4626a7b9c..b97867280 100644 --- a/td/telegram/net/SessionProxy.cpp +++ b/td/telegram/net/SessionProxy.cpp @@ -56,7 +56,8 @@ class SessionCallback : public Session::Callback { } void on_result(NetQueryPtr query) override { - if (query->id() != 0) { // not an update + if (UniqueId::extract_type(query->id()) != UniqueId::BindKey && + query->id() != 0) { // not bind key query and not an update send_closure(parent_, &SessionProxy::on_query_finished); } G()->net_query_dispatcher().dispatch(std::move(query));