summaryrefslogtreecommitdiff
path: root/protocols/VKontakte/src/misc.cpp
diff options
context:
space:
mode:
authorSergey Bolhovskoy <elzorfox@ya.ru>2015-02-18 10:35:21 +0000
committerSergey Bolhovskoy <elzorfox@ya.ru>2015-02-18 10:35:21 +0000
commitd407d10b3c799fd0c4b323d87cf45c56197aedfc (patch)
tree423e73af5ceac78d3624e1eee059549c93824931 /protocols/VKontakte/src/misc.cpp
parent776cf2cb82f9c95e18acbc2ec37ab6dbb8cebc74 (diff)
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
Diffstat (limited to 'protocols/VKontakte/src/misc.cpp')
-rw-r--r--protocols/VKontakte/src/misc.cpp10
1 files changed, 6 insertions, 4 deletions
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<void> &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