From 97f76c6b2dd8a0d7004a272d4db78ac3f606e95c Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 25 Feb 2024 11:40:24 +0300 Subject: code cleaning --- protocols/Telegram/src/proto.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'protocols/Telegram/src') 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 ids; ids.push_back(id); SendQuery(new TD::removeContacts(std::move(ids))); -- cgit v1.2.3