summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2023-06-07 19:24:47 +0300
committerGeorge Hazan <george.hazan@gmail.com>2023-06-07 19:24:47 +0300
commit06d7b7d0fd02af55b5c5183cc04a9c2ac04a4163 (patch)
tree67d930f48950572ee31fc441fdde710114163108 /src/core
parent65082d3cc4f7fe8e2f25b3ef367ab7c6a002b4cb (diff)
#3542 (Telegram: исходящие картинки показываются как входящие)
Diffstat (limited to 'src/core')
-rw-r--r--src/core/stdfile/src/file.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/stdfile/src/file.cpp b/src/core/stdfile/src/file.cpp
index c25d04eed1..68004435b2 100644
--- a/src/core/stdfile/src/file.cpp
+++ b/src/core/stdfile/src/file.cpp
@@ -325,7 +325,9 @@ static INT_PTR Proto_RecvFileT(WPARAM, LPARAM lParam)
dbei.szUserId = pre->szUserId;
dbei.eventType = EVENTTYPE_FILE;
dbei.flags = DBEF_UTF;
- if (pre->dwFlags & PREF_CREATEREAD)
+ if (pre->dwFlags & PRFF_SENT)
+ dbei.flags |= DBEF_SENT;
+ if (pre->dwFlags & PRFF_READ)
dbei.flags |= DBEF_READ;
if ((pre->dwFlags & PRFF_UNICODE) == PRFF_UNICODE) {