summaryrefslogtreecommitdiff
path: root/protocols/Telegram
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2023-03-21 20:07:18 +0300
committerGeorge Hazan <ghazan@miranda.im>2023-03-21 20:07:18 +0300
commit3a106e52d02453111925979a513792673e247f29 (patch)
tree9a117a5f64e8a476d6b214328a84d7049e37943c /protocols/Telegram
parentdac1f81c2dc56851ac33e9f38065952c4724c384 (diff)
fixes #3403 (Telegram: не пытаться убивать незавершённую сессию)
Diffstat (limited to 'protocols/Telegram')
-rw-r--r--protocols/Telegram/src/auth.cpp3
1 files changed, 2 insertions, 1 deletions
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: