diff options
author | George Hazan <george.hazan@gmail.com> | 2023-07-21 11:29:39 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2023-07-21 11:29:39 +0300 |
commit | 07c1a795d1cbeaaed59191290697993fac8114ec (patch) | |
tree | 81adcbd1c4c03957636886f9cba07aea2bf32cb2 /src | |
parent | 4eba326a2e8356a02a03ecd3f07c773132a3bd0e (diff) |
fixes #3592 (ICQ: если ссылка на файл протухла, но файл был скачан, его нельзя открыть)
Diffstat (limited to 'src')
-rw-r--r-- | src/mir_app/src/file.cpp | 6 |
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; |