summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2020-06-01 13:05:53 +0300
committerGeorge Hazan <ghazan@miranda.im>2020-06-01 13:05:53 +0300
commit8e31deecd836353c7abe6d63754faebdd16645c5 (patch)
tree1b4f842376c8ae5b64899d8830d0765279e3f167
parent19a91f4807b868698066b67b1b0c0251ea9ebbf9 (diff)
ICQ-WIM: file transfers to use event's timestamp if possible
-rw-r--r--protocols/ICQ-WIM/src/server.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/protocols/ICQ-WIM/src/server.cpp b/protocols/ICQ-WIM/src/server.cpp
index 35d28d9f90..e1c06b8236 100644
--- a/protocols/ICQ-WIM/src/server.cpp
+++ b/protocols/ICQ-WIM/src/server.cpp
@@ -447,6 +447,7 @@ void CIcqProto::ParseMessage(MCONTACT hContact, __int64 &lastMsgId, const JSONNo
CMStringA szUrl(FORMAT, ICQ_FILE_SERVER "/info/%S/", wszUrl.c_str());
auto *pReq = new AsyncHttpRequest(CONN_MAIN, REQUEST_GET, szUrl, &CIcqProto::OnFileInfo);
pReq->hContact = hContact;
+ pReq->pUserInfo = (void*)iMsgTime;
pReq << CHAR_PARAM("aimsid", m_aimsid) << CHAR_PARAM("previews", "600");
Push(pReq);
@@ -864,7 +865,7 @@ void CIcqProto::OnFileInfo(NETLIBHTTPREQUEST *pReply, AsyncHttpRequest *pReq)
PROTORECVFILE pre = { 0 };
pre.dwFlags = PRFF_UNICODE;
pre.fileCount = 1;
- pre.timestamp = time(0);
+ pre.timestamp = DWORD_PTR(pReq->pUserInfo);
pre.files.w = &ft->m_wszShortName;
pre.descr.w = wszDescr;
pre.lParam = (LPARAM)ft;