diff options
Diffstat (limited to 'protocols/Telegram/src')
-rw-r--r-- | protocols/Telegram/src/stdafx.h | 1 | ||||
-rw-r--r-- | protocols/Telegram/src/utils.cpp | 10 |
2 files changed, 7 insertions, 4 deletions
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 <m_extraicons.h>
#include <m_history.h>
#include <m_icolib.h>
+#include <m_ignore.h>
#include <m_json.h>
#include <m_langpack.h>
#include <m_message.h>
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);
|