From b8c4e0bc7ce124963c8694be67dcafeb702a1785 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 7 Feb 2024 14:47:07 +0300 Subject: Telegram: history is removed from my personal cloud even if it's not specidied --- protocols/ICQ-WIM/src/proto.cpp | 2 +- protocols/Telegram/src/proto.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'protocols') diff --git a/protocols/ICQ-WIM/src/proto.cpp b/protocols/ICQ-WIM/src/proto.cpp index c9ddc82054..9e5a57220d 100644 --- a/protocols/ICQ-WIM/src/proto.cpp +++ b/protocols/ICQ-WIM/src/proto.cpp @@ -242,7 +242,7 @@ void CIcqProto::BatchDeleteMsg() void CIcqProto::OnEventDeleted(MCONTACT hContact, MEVENT hEvent, int flags) { // the command arrived from the server, don't send it back then - if (flags & CDF_FROM_SERVER) + if (!(flags & CDF_DEL_HISTORY)) return; if (m_hDeleteContact != INVALID_CONTACT_ID) diff --git a/protocols/Telegram/src/proto.cpp b/protocols/Telegram/src/proto.cpp index 2c5e515a2f..f28ff289a1 100644 --- a/protocols/Telegram/src/proto.cpp +++ b/protocols/Telegram/src/proto.cpp @@ -218,7 +218,7 @@ void CTelegramProto::OnErase() void CTelegramProto::OnEventDeleted(MCONTACT hContact, MEVENT hDbEvent, int flags) { - if (!hContact || (flags & CDF_FROM_SERVER) != 0) + if (!hContact || !(flags & CDF_DEL_HISTORY)) return; auto *pUser = FindUser(GetId(hContact)); -- cgit v1.2.3