diff options
-rw-r--r-- | protocols/Telegram/src/auth.cpp | 3 |
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:
|