From 3a106e52d02453111925979a513792673e247f29 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 21 Mar 2023 20:07:18 +0300 Subject: =?UTF-8?q?fixes=20#3403=20(Telegram:=20=D0=BD=D0=B5=20=D0=BF?= =?UTF-8?q?=D1=8B=D1=82=D0=B0=D1=82=D1=8C=D1=81=D1=8F=20=D1=83=D0=B1=D0=B8?= =?UTF-8?q?=D0=B2=D0=B0=D1=82=D1=8C=20=D0=BD=D0=B5=D0=B7=D0=B0=D0=B2=D0=B5?= =?UTF-8?q?=D1=80=D1=88=D1=91=D0=BD=D0=BD=D1=83=D1=8E=20=D1=81=D0=B5=D1=81?= =?UTF-8?q?=D1=81=D0=B8=D1=8E)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- protocols/Telegram/src/auth.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/protocols/Telegram/src/auth.cpp b/protocols/Telegram/src/auth.cpp index 7084e12296..92962f5d79 100644 --- a/protocols/Telegram/src/auth.cpp +++ b/protocols/Telegram/src/auth.cpp @@ -94,7 +94,7 @@ void CTelegramProto::ProcessAuth(TD::updateAuthorizationState *pObj) pAuthState = std::move(pObj->authorization_state_); switch (pAuthState->get_id()) { case TD::authorizationStateWaitTdlibParameters::ID: - { + if (!m_bUnregister) { MFileVersion v; char text[100]; Miranda_GetFileVersion(&v); @@ -114,6 +114,7 @@ void CTelegramProto::ProcessAuth(TD::updateAuthorizationState *pObj) request->enable_storage_optimizer_ = true; SendQuery(request, &CTelegramProto::OnUpdateAuth); } + else LogOut(); break; case TD::authorizationStateWaitPhoneNumber::ID: -- cgit v1.2.3