diff options
author | George Hazan <ghazan@miranda.im> | 2020-06-01 13:05:53 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2020-06-01 13:05:53 +0300 |
commit | 8e31deecd836353c7abe6d63754faebdd16645c5 (patch) | |
tree | 1b4f842376c8ae5b64899d8830d0765279e3f167 /protocols/ICQ-WIM | |
parent | 19a91f4807b868698066b67b1b0c0251ea9ebbf9 (diff) |
ICQ-WIM: file transfers to use event's timestamp if possible
Diffstat (limited to 'protocols/ICQ-WIM')
-rw-r--r-- | protocols/ICQ-WIM/src/server.cpp | 3 |
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; |