summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mir_app/src/file.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mir_app/src/file.cpp b/src/mir_app/src/file.cpp
index 67476b2dbc..5c82acf4d2 100644
--- a/src/mir_app/src/file.cpp
+++ b/src/mir_app/src/file.cpp
@@ -364,6 +364,7 @@ MEVENT Proto_RecvFile(MCONTACT hContact, PROTORECVFILE *pre)
bool bSilent = (pre->dwFlags & PRFF_SILENT) != 0;
bool bSent = (pre->dwFlags & PRFF_SENT) != 0;
+ bool bRead = (pre->dwFlags & PRFF_READ) != 0;
DB::EventInfo dbei;
dbei.szModule = Proto_GetBaseAccountName(hContact);
@@ -374,7 +375,7 @@ MEVENT Proto_RecvFile(MCONTACT hContact, PROTORECVFILE *pre)
dbei.flags = DBEF_UTF;
if (bSent)
dbei.flags |= DBEF_SENT;
- if (pre->dwFlags & PRFF_READ)
+ if (bRead)
dbei.flags |= DBEF_READ;
CMStringW wszFiles, wszDescr;
@@ -411,7 +412,8 @@ MEVENT Proto_RecvFile(MCONTACT hContact, PROTORECVFILE *pre)
MEVENT hdbe = db_event_add(hContact, &dbei);
// yes, we can receive a file that was sent from another device. let's ignore it
- if (!bSent) {
+ // also do not notify about events been already read
+ if (!bSent && !bRead) {
CLISTEVENT cle = {};
cle.hContact = hContact;
cle.hDbEvent = hdbe;