summaryrefslogtreecommitdiff
path: root/protocols/VKontakte/src/vk_chats.cpp
diff options
context:
space:
mode:
authorSergey Bolhovskoy <elzorfox@ya.ru>2015-09-08 04:22:07 +0000
committerSergey Bolhovskoy <elzorfox@ya.ru>2015-09-08 04:22:07 +0000
commit57fb5a039ebb74fd276d7bd0224406f29f9d18b9 (patch)
tree8c4876131542a2d3047acc97ca7c9acf9da8a0cd /protocols/VKontakte/src/vk_chats.cpp
parenta8b306403955d9904cb97f8670e9ff583b0b2a00 (diff)
VKontakte:
PF4_GROUPCHATFILES support version bump git-svn-id: http://svn.miranda-ng.org/main/trunk@15304 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/VKontakte/src/vk_chats.cpp')
-rw-r--r--protocols/VKontakte/src/vk_chats.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/protocols/VKontakte/src/vk_chats.cpp b/protocols/VKontakte/src/vk_chats.cpp
index 1d3c56d273..d5b58469e2 100644
--- a/protocols/VKontakte/src/vk_chats.cpp
+++ b/protocols/VKontakte/src/vk_chats.cpp
@@ -527,9 +527,20 @@ int CVkProto::OnChatEvent(WPARAM, LPARAM lParam)
void CVkProto::OnSendChatMsg(NETLIBHTTPREQUEST *reply, AsyncHttpRequest *pReq)
{
debugLogA("CVkProto::OnSendChatMsg %d", reply->resultCode);
+ int iResult = ACKRESULT_FAILED;
if (reply->resultCode == 200) {
JSONNode jnRoot;
CheckJsonResponse(pReq, reply, jnRoot);
+ iResult = ACKRESULT_SUCCESS;
+ }
+ if (!pReq->pUserInfo)
+ return;
+
+ CVkFileUploadParam *fup = (CVkFileUploadParam *)pReq->pUserInfo;
+ ProtoBroadcastAck(fup->hContact, ACKTYPE_FILE, iResult, (HANDLE)(fup));
+ if (!pReq->bNeedsRestart || m_bTerminated) {
+ delete fup;
+ pReq->pUserInfo = NULL;
}
}