summaryrefslogtreecommitdiff
path: root/protocols/Telegram
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/Telegram
parent3d39b76a3845c6096b6f19bdaa0aff5aec9158f1 (diff)
Telegram: history is removed from my personal cloud even if it's not specidied
Diffstat (limited to 'protocols/Telegram')
-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 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));