summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2023-06-08 11:24:59 +0300
committerGeorge Hazan <george.hazan@gmail.com>2023-06-08 11:24:59 +0300
commitdfc78b362d5e37f4cfe45f9be42c63e400a4eae4 (patch)
treef5a3490210fb7ec1a1a6d93c6e38da6e15b440c9 /src/core
parent4d795e7ade615ed283387b4dc5a74056bdfbfd62 (diff)
fixes #3542 (Telegram: исходящие картинки показываются как входящие)
Diffstat (limited to 'src/core')
-rw-r--r--src/core/stdfile/src/file.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/stdfile/src/file.cpp b/src/core/stdfile/src/file.cpp
index 68004435b2..5368a9a1dc 100644
--- a/src/core/stdfile/src/file.cpp
+++ b/src/core/stdfile/src/file.cpp
@@ -361,14 +361,14 @@ static INT_PTR Proto_RecvFileT(WPARAM, LPARAM lParam)
blob.write(dbei);
}
- bool bShow = (pre->dwFlags & PRFF_SILENT) == 0;
+ bool bShow = (pre->dwFlags & (PRFF_SILENT | PRFF_SENT)) == 0;
MEVENT hdbe = db_event_add(ccs->hContact, &dbei);
CLISTEVENT cle = {};
cle.hContact = ccs->hContact;
cle.hDbEvent = hdbe;
cle.lParam = pre->lParam;
-
+
if (bShow && g_plugin.bAutoAccept && Contact::OnList(ccs->hContact))
LaunchRecvDialog(&cle);
else {