From 65871016c3d40802e8981f16115758c8d8985826 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 30 Oct 2019 15:57:27 +0300 Subject: fixes #2110 (ICQ-WIM: display a reference for the uploaded file) --- protocols/ICQ-WIM/src/server.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'protocols/ICQ-WIM/src') diff --git a/protocols/ICQ-WIM/src/server.cpp b/protocols/ICQ-WIM/src/server.cpp index c44419727b..7558861bc2 100644 --- a/protocols/ICQ-WIM/src/server.cpp +++ b/protocols/ICQ-WIM/src/server.cpp @@ -717,6 +717,14 @@ void CIcqProto::OnFileContinue(NETLIBHTTPREQUEST *pReply, AsyncHttpRequest *pOld pReq << AIMSID(this) << CHAR_PARAM("a", m_szAToken) << CHAR_PARAM("k", ICQ_APP_ID) << CHAR_PARAM("mentions", "") << WCHAR_PARAM("message", wszUrl) << CHAR_PARAM("offlineIM", "true") << WCHAR_PARAM("parts", wszParts) << WCHAR_PARAM("t", GetUserId(pTransfer->pfts.hContact)) << INT_PARAM("ts", TS()); Push(pReq); + + // Send the same message to myself + T2Utf msgText(wszUrl); + PROTORECVEVENT recv = {}; + recv.flags = PREF_CREATEREAD; + recv.szMessage = msgText; + recv.timestamp = time(0); + ProtoChainRecvMsg(pTransfer->pfts.hContact, &recv); } else ProtoBroadcastAck(pTransfer->pfts.hContact, ACKTYPE_FILE, ACKRESULT_FAILED, pTransfer); delete pTransfer; -- cgit v1.2.3