From 07c1a795d1cbeaaed59191290697993fac8114ec Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 21 Jul 2023 11:29:39 +0300 Subject: =?UTF-8?q?fixes=20#3592=20(ICQ:=20=D0=B5=D1=81=D0=BB=D0=B8=20?= =?UTF-8?q?=D1=81=D1=81=D1=8B=D0=BB=D0=BA=D0=B0=20=D0=BD=D0=B0=20=D1=84?= =?UTF-8?q?=D0=B0=D0=B9=D0=BB=20=D0=BF=D1=80=D0=BE=D1=82=D1=83=D1=85=D0=BB?= =?UTF-8?q?=D0=B0,=20=D0=BD=D0=BE=20=D1=84=D0=B0=D0=B9=D0=BB=20=D0=B1?= =?UTF-8?q?=D1=8B=D0=BB=20=D1=81=D0=BA=D0=B0=D1=87=D0=B0=D0=BD,=20=D0=B5?= =?UTF-8?q?=D0=B3=D0=BE=20=D0=BD=D0=B5=D0=BB=D1=8C=D0=B7=D1=8F=20=D0=BE?= =?UTF-8?q?=D1=82=D0=BA=D1=80=D1=8B=D1=82=D1=8C)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/mir_app/src/file.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src') 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; -- cgit v1.2.3