summaryrefslogtreecommitdiff
path: root/protocols/VKontakte/src/misc.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-10-12 22:33:13 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-10-12 22:33:13 +0000
commit32d1c295ac763fdf069ac6915d772c0b92818fc4 (patch)
tree1f2d34d2bdfaa4f22bb0b344e4028489ce07cca8 /protocols/VKontakte/src/misc.cpp
parent7d8f746129a286b6c0488e461811c25da40f60c0 (diff)
VK:
- notification thread now works as expected; - message reading works ok too; - notification about new messages also works ok git-svn-id: http://svn.miranda-ng.org/main/trunk@6467 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/VKontakte/src/misc.cpp')
-rw-r--r--protocols/VKontakte/src/misc.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/protocols/VKontakte/src/misc.cpp b/protocols/VKontakte/src/misc.cpp
index b4f27823cb..2d7cc09fca 100644
--- a/protocols/VKontakte/src/misc.cpp
+++ b/protocols/VKontakte/src/misc.cpp
@@ -59,6 +59,17 @@ HANDLE CVkProto::FindUser(LPCSTR pUserid, bool bCreate)
return hNewContact;
}
+bool CVkProto::CheckMid(int msgid)
+{
+ for (int i=m_sendIds.getCount()-1; i >= 0; i--)
+ if (m_sendIds[i] == (HANDLE)msgid) {
+ m_sendIds.remove(i);
+ return true;
+ }
+
+ return false;
+}
+
LPCSTR findHeader(NETLIBHTTPREQUEST *pReq, LPCSTR szField)
{
for (int i=0; i < pReq->headersCount; i++)