From ea162a6fdb1d7a1c4f11b8e8529391a7bee56730 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 18 Oct 2024 13:55:24 +0300 Subject: =?UTF-8?q?fixes=20#4738=20(=D0=9F=D1=80=D0=B5=D0=B4=D0=BF=D1=80?= =?UTF-8?q?=D0=BE=D1=81=D0=BC=D0=BE=D1=82=D1=80=20=D1=84=D0=B0=D0=B9=D0=BB?= =?UTF-8?q?=D0=BE=D0=B2=20=D1=81=D0=BE=D1=85=D1=80=D0=B0=D0=BD=D1=8F=D0=B5?= =?UTF-8?q?=D1=82=D1=81=D1=8F=20=D0=B2=20=D0=BF=D1=80=D0=BE=D1=84=D0=B8?= =?UTF-8?q?=D0=BB=D1=8C=20=D0=B4=D0=B0=D0=B6=D0=B5=20=D1=83=20=D0=BA=D0=B0?= =?UTF-8?q?=D0=BD=D0=B0=D0=BB=D0=B0,=20=D0=B3=D0=B4=D0=B5=20=D0=BF=D1=80?= =?UTF-8?q?=D0=B8=D1=91=D0=BC=20=D1=81=D0=BE=D0=BE=D0=B1=D1=89=D0=B5=D0=BD?= =?UTF-8?q?=D0=B8=D0=B9=20=D0=B8=20=D1=84=D0=B0=D0=B9=D0=BB=D0=BE=D0=B2=20?= =?UTF-8?q?=D0=B7=D0=B0=D0=B8=D0=B3=D0=BD=D0=BE=D1=80=D0=B5=D0=BD)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- protocols/Telegram/src/stdafx.h | 1 + protocols/Telegram/src/utils.cpp | 10 ++++++---- 2 files changed, 7 insertions(+), 4 deletions(-) (limited to 'protocols') diff --git a/protocols/Telegram/src/stdafx.h b/protocols/Telegram/src/stdafx.h index 8b583a6cba..ba59150fbb 100644 --- a/protocols/Telegram/src/stdafx.h +++ b/protocols/Telegram/src/stdafx.h @@ -22,6 +22,7 @@ #include #include #include +#include #include #include #include diff --git a/protocols/Telegram/src/utils.cpp b/protocols/Telegram/src/utils.cpp index b0a71e8fcb..79fce40608 100644 --- a/protocols/Telegram/src/utils.cpp +++ b/protocols/Telegram/src/utils.cpp @@ -480,10 +480,12 @@ bool CTelegramProto::GetMessageFile(const EmbeddedFile &F, TG_FILE_REQUEST::Type } if (dbei) { - DB::FILE_BLOB blob(dbei); - OnReceiveOfflineFile(dbei, blob); - blob.write(dbei); - db_event_edit(dbei.getEvent(), &dbei, true); + if (!Ignore_IsIgnored(pRequest->m_hContact, IGNOREEVENT_FILE)) { + DB::FILE_BLOB blob(dbei); + OnReceiveOfflineFile(dbei, blob); + blob.write(dbei); + db_event_edit(dbei.getEvent(), &dbei, true); + } delete pRequest; } else ProtoChainRecvFile(pRequest->m_hContact, DB::FILE_BLOB(pRequest, pszFileName, F.szBody), dbei); -- cgit v1.2.3