From 1d373680c4505f430347fdc5b8785502a85cc5c4 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 4 Nov 2024 14:07:59 +0300 Subject: =?UTF-8?q?fixes=20#4771=20(Telegram:=20=D0=BA=D0=BD=D0=BE=D0=BF?= =?UTF-8?q?=D0=BA=D0=B0=20Log=20out=20=D0=BB=D0=BE=D0=BC=D0=B0=D0=B5=D1=82?= =?UTF-8?q?=20=D1=80=D0=B0=D0=B1=D0=BE=D1=82=D1=83=20=D0=BF=D1=80=D0=BE?= =?UTF-8?q?=D1=82=D0=BE=D0=BA=D0=BE=D0=BB=D0=B0=20=D0=B4=D0=BE=20=D0=BF?= =?UTF-8?q?=D0=B5=D1=80=D0=B5=D0=B7=D0=B0=D0=BF=D1=83=D1=81=D0=BA=D0=B0)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- protocols/Telegram/src/server.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/protocols/Telegram/src/server.cpp b/protocols/Telegram/src/server.cpp index cd6cb15f0f..a8e6e23b59 100644 --- a/protocols/Telegram/src/server.cpp +++ b/protocols/Telegram/src/server.cpp @@ -19,6 +19,7 @@ along with this program. If not, see . void CTelegramProto::OnEndSession(td::ClientManager::Response&) { + m_bUnregister = false; m_bTerminated = true; delSetting(DBKEY_AUTHORIZED); } @@ -1088,7 +1089,7 @@ void CTelegramProto::ProcessOption(TD::updateOption *pObj) m_iOwnId = iValue; SetId(0, m_iOwnId); - if (m_iSavedMessages != 0) + if (m_iSavedMessages != 0 || m_bUnregister) return; if (auto *pUser = FindUser(iValue)) { -- cgit v1.2.3