summaryrefslogtreecommitdiff
path: root/protocols
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2023-11-05 12:16:15 +0300
committerGeorge Hazan <george.hazan@gmail.com>2023-11-05 12:16:15 +0300
commit89f633a092a3da2f0210aa62b160fd82cb05a0fb (patch)
treedc0b476e491c60dde3c26dc44b4ae3f439091e34 /protocols
parenteb23a21ac4a5352a501ddaa1d469367773970e62 (diff)
fixes #3797 (Telegram: избранное не голубеет)
Diffstat (limited to 'protocols')
-rw-r--r--protocols/Telegram/src/server.cpp3
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;