diff options
Diffstat (limited to 'protocols/Telegram/src/auth.cpp')
-rw-r--r-- | protocols/Telegram/src/auth.cpp | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/protocols/Telegram/src/auth.cpp b/protocols/Telegram/src/auth.cpp index ed82c99d04..53aa8d5c82 100644 --- a/protocols/Telegram/src/auth.cpp +++ b/protocols/Telegram/src/auth.cpp @@ -99,12 +99,12 @@ void CTelegramProto::ProcessAuth(TD::updateAuthorizationState *pObj) break;
case TD::authorizationStateWaitTdlibParameters::ID:
- if (!m_bUnregister) {
- MFileVersion v;
- char text[100];
- Miranda_GetFileVersion(&v);
- mir_snprintf(text, "%d.%d.%d.%d", v[0], v[1], v[2], v[3]);
-
+ MFileVersion v;
+ Miranda_GetFileVersion(&v);
+
+ char text[100];
+ mir_snprintf(text, "%d.%d.%d.%d", v[0], v[1], v[2], v[3]);
+ {
CMStringW wszPath(GetProtoFolder());
auto *request = new TD::setTdlibParameters();
@@ -119,7 +119,6 @@ void CTelegramProto::ProcessAuth(TD::updateAuthorizationState *pObj) request->enable_storage_optimizer_ = true;
SendQuery(request, &CTelegramProto::OnUpdateAuth);
}
- else LogOut();
break;
case TD::authorizationStateWaitPhoneNumber::ID:
|