From 3ed955cfabef8c45121fd39d2c0fc72727ac415a Mon Sep 17 00:00:00 2001 From: ElzorFox Date: Tue, 2 May 2017 16:18:13 +0500 Subject: VKontakte: fix invisible status on miranda start --- protocols/VKontakte/src/vk_status.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'protocols/VKontakte/src') diff --git a/protocols/VKontakte/src/vk_status.cpp b/protocols/VKontakte/src/vk_status.cpp index 4dcb8168ed..110601ee8a 100644 --- a/protocols/VKontakte/src/vk_status.cpp +++ b/protocols/VKontakte/src/vk_status.cpp @@ -97,8 +97,7 @@ void CVkProto::SetServerStatus(int iNewStatus) m_bSetBroadcast = false; } m_iStatus = ID_STATUS_INVISIBLE; - if (iOldStatus == ID_STATUS_ONLINE) - Push(new AsyncHttpRequest(this, REQUEST_GET, "/method/account.setOffline.json", true, &CVkProto::OnReceiveSmth)); + Push(new AsyncHttpRequest(this, REQUEST_GET, "/method/account.setOffline.json", true, &CVkProto::OnReceiveSmth)); } ProtoBroadcastAck(NULL, ACKTYPE_STATUS, ACKRESULT_SUCCESS, (HANDLE)iOldStatus, m_iStatus); -- cgit v1.2.3