summaryrefslogtreecommitdiff
path: root/protocols/Telegram/src/server.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2023-06-07 20:17:14 +0300
committerGeorge Hazan <george.hazan@gmail.com>2023-06-07 20:17:14 +0300
commite2f89ec27ee79ef51c271f40d3fdaf42496d066a (patch)
tree17d3243e61a11bdb715cede9f325eb1066953cc7 /protocols/Telegram/src/server.cpp
parent9f9f8d20f6b1db33d9bb14154f27a51c53cd9c22 (diff)
fixes #3417 (Telegram: при удалении учётной записи сессия не удаляется)
Diffstat (limited to 'protocols/Telegram/src/server.cpp')
-rw-r--r--protocols/Telegram/src/server.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/protocols/Telegram/src/server.cpp b/protocols/Telegram/src/server.cpp
index c8eba7f5ae..d40b6dc82f 100644
--- a/protocols/Telegram/src/server.cpp
+++ b/protocols/Telegram/src/server.cpp
@@ -1,4 +1,4 @@
-/*
+-/*
Copyright (C) 2012-23 Miranda NG team (https://miranda-ng.org)
This program is free software; you can redistribute it and/or
@@ -74,6 +74,7 @@ void CTelegramProto::OnLoggedIn()
}
else {
m_impl.m_keepAlive.Start(1000);
+ setByte(DBKEY_AUTHORIZED, 1);
SendQuery(new TD::getChats(td::tl::unique_ptr<TD::chatListMain>(), 1000));
}