diff options
author | George Hazan <george.hazan@gmail.com> | 2024-11-04 14:07:59 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2024-11-04 14:07:59 +0300 |
commit | 1d373680c4505f430347fdc5b8785502a85cc5c4 (patch) | |
tree | 652b46c755564a72f57fc7f7270a2157005df52b | |
parent | 88ee57c70e0b45fe1e418d46db51f55415ce0c85 (diff) |
fixes #4771 (Telegram: кнопка Log out ломает работу протокола до перезапуска)
-rw-r--r-- | protocols/Telegram/src/server.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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 <http://www.gnu.org/licenses/>. 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)) {
|