From 3a124f929481fbb59c5cb49618fc19c01cd63833 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 27 Aug 2014 19:38:59 +0000 Subject: original version of patch returned git-svn-id: http://svn.miranda-ng.org/main/trunk@10333 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/VKontakte/src/vk_thread.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'protocols/VKontakte') 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); -- cgit v1.2.3