summaryrefslogtreecommitdiff
path: root/protocols
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2024-02-25 11:40:24 +0300
committerGeorge Hazan <george.hazan@gmail.com>2024-02-25 11:40:24 +0300
commit97f76c6b2dd8a0d7004a272d4db78ac3f606e95c (patch)
tree66290e9b7bcf75102163fb9ca11b539efcb148b2 /protocols
parent32924be432eff09324f2ab1ac741a01bbfef75ca (diff)
code cleaning
Diffstat (limited to 'protocols')
-rw-r--r--protocols/Telegram/src/proto.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/Telegram/src/proto.cpp b/protocols/Telegram/src/proto.cpp
index 555a336b5b..d62eda948c 100644
--- a/protocols/Telegram/src/proto.cpp
+++ b/protocols/Telegram/src/proto.cpp
@@ -138,7 +138,7 @@ bool CTelegramProto::OnContactDeleted(MCONTACT hContact, uint32_t flags)
if (flags & CDF_DEL_HISTORY)
SvcEmptyServerHistory(hContact, flags);
- if (flags & CDF_FROM_SERVER) {
+ if (flags & CDF_DEL_CONTACT) {
TD::array<TD::int53> ids;
ids.push_back(id);
SendQuery(new TD::removeContacts(std::move(ids)));