summaryrefslogtreecommitdiff
path: root/protocols
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-08-27 19:38:59 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-08-27 19:38:59 +0000
commit3a124f929481fbb59c5cb49618fc19c01cd63833 (patch)
tree880e3fad8d84519f598780ca54574bd96936f422 /protocols
parentee46b2da0a78717c9ac1ca0739fe7f1f666377ce (diff)
original version of patch returned
git-svn-id: http://svn.miranda-ng.org/main/trunk@10333 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols')
-rw-r--r--protocols/VKontakte/src/vk_thread.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/protocols/VKontakte/src/vk_thread.cpp b/protocols/VKontakte/src/vk_thread.cpp
index 681b8ef763..db858501bf 100644
--- a/protocols/VKontakte/src/vk_thread.cpp
+++ b/protocols/VKontakte/src/vk_thread.cpp
@@ -437,8 +437,6 @@ void CVkProto::OnReceiveMessages(NETLIBHTTPREQUEST *reply, AsyncHttpRequest *pRe
continue;
int mid = json_as_int(json_get(pMsg, "mid"));
- if (!CheckMid(mid))
- continue;
char szMid[40];
_itoa(mid, szMid, 10);
@@ -488,7 +486,8 @@ void CVkProto::OnReceiveMessages(NETLIBHTTPREQUEST *reply, AsyncHttpRequest *pRe
recv.lParam = isOut;
recv.pCustomData = szMid;
recv.cbCustomDataSize = (int)strlen(szMid);
- ProtoChainRecvMsg(hContact, &recv);
+ if (!CheckMid(mid))
+ ProtoChainRecvMsg(hContact, &recv);
}
MarkMessagesRead(mids);