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/Telegram/src/proto.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'protocols/Telegram') 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