diff options
Diffstat (limited to 'protocols/VKontakte/src/vk_files.cpp')
-rw-r--r-- | protocols/VKontakte/src/vk_files.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/protocols/VKontakte/src/vk_files.cpp b/protocols/VKontakte/src/vk_files.cpp index 19b8619881..24b7c943e1 100644 --- a/protocols/VKontakte/src/vk_files.cpp +++ b/protocols/VKontakte/src/vk_files.cpp @@ -1,5 +1,5 @@ /*
-Copyright (c) 2013-24 Miranda NG team (https://miranda-ng.org)
+Copyright (c) 2013-25 Miranda NG team (https://miranda-ng.org)
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
@@ -494,8 +494,6 @@ void CVkProto::OnReciveUploadFile(MHttpResponse *reply, AsyncHttpRequest *pReq) }
pMsgReq << INT_PARAM("chat_id", cc->m_iChatId);
- pMsgReq->pUserInfo = pReq->pUserInfo;
-
}
else {
VKUserID_t iUserId = ReadVKUserID(fup->hContact);
@@ -505,15 +503,15 @@ void CVkProto::OnReciveUploadFile(MHttpResponse *reply, AsyncHttpRequest *pReq) }
pMsgReq << INT_PARAM("peer_id", iUserId);
- pMsgReq->pUserInfo = new CVkSendMsgParam(fup->hContact, fup);
}
-
+
ULONG uMsgId = ::InterlockedIncrement(&m_iMsgId);
pMsgReq
<< WCHAR_PARAM("message", fup->wszDesc)
<< WCHAR_PARAM("attachment", Attachment)
<< INT_PARAM("random_id", ((long)time(0)) * 100 + uMsgId % 100);
-
pMsgReq->AddHeader("Content-Type", "application/x-www-form-urlencoded");
+ pMsgReq->pUserInfo = new CVkSendMsgParam(fup->hContact, fup);
+
Push(pMsgReq);
}
\ No newline at end of file |