From 32d1c295ac763fdf069ac6915d772c0b92818fc4 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 12 Oct 2013 22:33:13 +0000 Subject: 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 --- protocols/VKontakte/src/misc.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'protocols/VKontakte/src/misc.cpp') 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++) -- cgit v1.2.3