summaryrefslogtreecommitdiff
path: root/protocols/VKontakte/src/vk_messages.cpp
diff options
context:
space:
mode:
authorElzorFox <elzorfox@ya.ru>2017-05-18 16:07:00 +0500
committerElzorFox <elzorfox@ya.ru>2017-05-18 16:07:00 +0500
commit184a5605996658f20c65d3b89f9c155b12e62585 (patch)
tree4dee1a6cb3d17efe721c87a99ef7c24c069e8010 /protocols/VKontakte/src/vk_messages.cpp
parentde4f7d73f68c0ae87180afa6e83649b2d1a41b17 (diff)
VKontakte:
fix random server delivery processing show error popups for sending messages errors
Diffstat (limited to 'protocols/VKontakte/src/vk_messages.cpp')
-rw-r--r--protocols/VKontakte/src/vk_messages.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/protocols/VKontakte/src/vk_messages.cpp b/protocols/VKontakte/src/vk_messages.cpp
index f32d4b1f2a..f81c624f3d 100644
--- a/protocols/VKontakte/src/vk_messages.cpp
+++ b/protocols/VKontakte/src/vk_messages.cpp
@@ -78,7 +78,7 @@ int CVkProto::SendMsg(MCONTACT hContact, int, const char *szMsg)
Push(pReq);
- if (!m_bServerDelivery && !bIsChat)
+ if (!m_vkOptions.bServerDelivery && !bIsChat)
ForkThread(&CVkProto::SendMsgAck, new CVkSendMsgParam(hContact, uMsgId));
if (!IsEmpty(pszRetMsg))
@@ -103,6 +103,7 @@ void CVkProto::OnSendMessage(NETLIBHTTPREQUEST *reply, AsyncHttpRequest *pReq)
JSONNode jnRoot;
const JSONNode &jnResponse = CheckJsonResponse(pReq, reply, jnRoot);
if (jnResponse) {
+ debugLogA("CVkProto::OnSendMessage jnResponse %d", jnResponse.as_int());
UINT mid;
switch (jnResponse.type()) {
case JSON_NUMBER:
@@ -137,7 +138,7 @@ void CVkProto::OnSendMessage(NETLIBHTTPREQUEST *reply, AsyncHttpRequest *pReq)
if (!pReq->bNeedsRestart || m_bTerminated)
delete param->pFUP;
}
- else if (m_bServerDelivery)
+ else if (m_vkOptions.bServerDelivery)
ProtoBroadcastAck(param->hContact, ACKTYPE_MESSAGE, iResult, (HANDLE)(param->iMsgID));
if (!pReq->bNeedsRestart || m_bTerminated) {