summaryrefslogtreecommitdiff
path: root/protocols/VKontakte
diff options
context:
space:
mode:
authorSergey Bolhovskoy <elzorfox@ya.ru>2015-01-20 14:33:44 +0000
committerSergey Bolhovskoy <elzorfox@ya.ru>2015-01-20 14:33:44 +0000
commit7d4e48d8de0eb5ed44dc7f11a1f777ea461a2843 (patch)
tree52e285c136bfbbbb95ad7932b1bb128bde66d4e4 /protocols/VKontakte
parent229670706952c030e2c4ff2aa52cecb299507591 (diff)
VKontakte:
fix for set status invisible after online git-svn-id: http://svn.miranda-ng.org/main/trunk@11884 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/VKontakte')
-rw-r--r--protocols/VKontakte/src/vk_thread.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/protocols/VKontakte/src/vk_thread.cpp b/protocols/VKontakte/src/vk_thread.cpp
index d7e8c2ae07..436d552f0f 100644
--- a/protocols/VKontakte/src/vk_thread.cpp
+++ b/protocols/VKontakte/src/vk_thread.cpp
@@ -129,6 +129,9 @@ void CVkProto::SetServerStatus(int iNewStatus)
m_iStatus = ID_STATUS_INVISIBLE;
if (!ListeningToMsg.IsEmpty())
RetrieveStatusMsg(oldStatusMsg);
+ if (iOldStatus == ID_STATUS_ONLINE)
+ Push(new AsyncHttpRequest(this, REQUEST_GET, "/method/account.setOffline.json", true, &CVkProto::OnReceiveSmth)
+ << VER_API);
}
ProtoBroadcastAck(NULL, ACKTYPE_STATUS, ACKRESULT_SUCCESS, (HANDLE)iOldStatus, m_iStatus);