summaryrefslogtreecommitdiff
path: root/protocols/VKontakte/src/vk_messages.cpp
diff options
context:
space:
mode:
authorElzorFox <elzorfox@ya.ru>2017-05-14 12:25:30 +0500
committerElzorFox <elzorfox@ya.ru>2017-05-14 12:25:30 +0500
commitcec4228b656b44a8cdde869c3031e6e62480688d (patch)
treefa7aa6c4dccd3b82dd77af67ca30f27df35063ef /protocols/VKontakte/src/vk_messages.cpp
parent62c46cea44a5897025391e32ed6aee4feecd1528 (diff)
VKontakte:
fix invisible status on sending message update VK_API_VER to 5.64 version bump
Diffstat (limited to 'protocols/VKontakte/src/vk_messages.cpp')
-rw-r--r--protocols/VKontakte/src/vk_messages.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/protocols/VKontakte/src/vk_messages.cpp b/protocols/VKontakte/src/vk_messages.cpp
index 26fd4c2ad2..f32d4b1f2a 100644
--- a/protocols/VKontakte/src/vk_messages.cpp
+++ b/protocols/VKontakte/src/vk_messages.cpp
@@ -83,6 +83,8 @@ int CVkProto::SendMsg(MCONTACT hContact, int, const char *szMsg)
if (!IsEmpty(pszRetMsg))
SendMsg(hContact, 0, pszRetMsg);
+ else if (m_iStatus == ID_STATUS_INVISIBLE)
+ Push(new AsyncHttpRequest(this, REQUEST_GET, "/method/account.setOffline.json", true, &CVkProto::OnReceiveSmth));
return uMsgId;
}