From d407d10b3c799fd0c4b323d87cf45c56197aedfc Mon Sep 17 00:00:00 2001 From: Sergey Bolhovskoy Date: Wed, 18 Feb 2015 10:35:21 +0000 Subject: VKontakte: LongPollServer always use ssl now fix false positives for set message read time and status invisible version bump git-svn-id: http://svn.miranda-ng.org/main/trunk@12179 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/VKontakte/src/misc.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'protocols/VKontakte/src/misc.cpp') diff --git a/protocols/VKontakte/src/misc.cpp b/protocols/VKontakte/src/misc.cpp index 71c109a042..7cb2638cf4 100644 --- a/protocols/VKontakte/src/misc.cpp +++ b/protocols/VKontakte/src/misc.cpp @@ -282,11 +282,11 @@ MCONTACT CVkProto::FindChat(LONG dwUserid) ///////////////////////////////////////////////////////////////////////////////////////// -bool CVkProto::CheckMid(int guid) +bool CVkProto::CheckMid(LIST &lList, int guid) { - for (int i = m_sendIds.getCount() - 1; i >= 0; i--) - if ((int)m_sendIds[i] == guid) { - m_sendIds.remove(i); + for (int i = lList.getCount() - 1; i >= 0; i--) + if ((int)lList[i] == guid) { + lList.remove(i); return true; } @@ -1142,9 +1142,11 @@ CMString CVkProto::GetFwdMessages(JSONNODE *pMessages, BBCSupport iBBC) void CVkProto::SetInvisible(MCONTACT hContact) { + debugLogA("CVkProto::SetInvisible %d", getDword(hContact, "ID", -1)); if (getWord(hContact, "Status", ID_STATUS_OFFLINE) == ID_STATUS_OFFLINE) { setWord(hContact, "Status", ID_STATUS_INVISIBLE); SetMirVer(hContact, 1); + debugLogA("CVkProto::SetInvisible %d set ID_STATUS_INVISIBLE", getDword(hContact, "ID", -1)); } setDword(hContact, "InvisibleTS", time(NULL)); } \ No newline at end of file -- cgit v1.2.3