diff options
Diffstat (limited to 'protocols')
-rw-r--r-- | protocols/Telegram/src/server.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/protocols/Telegram/src/server.cpp b/protocols/Telegram/src/server.cpp index d33a605ba9..ae8a74e8a5 100644 --- a/protocols/Telegram/src/server.cpp +++ b/protocols/Telegram/src/server.cpp @@ -761,6 +761,9 @@ void CTelegramProto::ProcessOption(TD::updateOption *pObj) m_iOwnId = iValue;
SetId(0, m_iOwnId);
+ if (m_iSavedMessages != 0)
+ return;
+
if (auto *pUser = FindUser(iValue)) {
m_iSavedMessages = pUser->hContact;
pUser->hContact = 0;
|