summaryrefslogtreecommitdiff
path: root/protocols
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2024-02-07 14:47:07 +0300
committerGeorge Hazan <george.hazan@gmail.com>2024-02-07 14:47:07 +0300
commitb8c4e0bc7ce124963c8694be67dcafeb702a1785 (patch)
treef5d81c3ea7d94246c81b32895158f5ad576c5479 /protocols
parent3d39b76a3845c6096b6f19bdaa0aff5aec9158f1 (diff)
Telegram: history is removed from my personal cloud even if it's not specidied
Diffstat (limited to 'protocols')
-rw-r--r--protocols/ICQ-WIM/src/proto.cpp2
-rw-r--r--protocols/Telegram/src/proto.cpp2
2 files changed, 2 insertions, 2 deletions
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));