diff options
author | ElzorFox <elzorfox@ya.ru> | 2020-06-11 21:16:08 +0500 |
---|---|---|
committer | ElzorFox <elzorfox@ya.ru> | 2020-06-11 21:17:04 +0500 |
commit | 9696040cbbaaf89dd5f2f663278b4b45f4ebc7bd (patch) | |
tree | e2cbcf4b5a93cac0014e9c4a7bd519638c7b8910 /protocols/VKontakte/src/vk_messages.cpp | |
parent | 7478fc7427143486c6f2ecf552b460c78fb44e82 (diff) |
VKontakte: prepare for upgrade VK API version
Diffstat (limited to 'protocols/VKontakte/src/vk_messages.cpp')
-rw-r--r-- | protocols/VKontakte/src/vk_messages.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/protocols/VKontakte/src/vk_messages.cpp b/protocols/VKontakte/src/vk_messages.cpp index ce7cbe2736..11c0b96c8d 100644 --- a/protocols/VKontakte/src/vk_messages.cpp +++ b/protocols/VKontakte/src/vk_messages.cpp @@ -199,7 +199,11 @@ void CVkProto::RetrieveUnreadMessages() if (!IsOnline())
return;
+#if (VK_NEW_API == 1)
+ Push(new AsyncHttpRequest(this, REQUEST_GET, "/method/execute.RetrieveUnreadConversations", true, &CVkProto::OnReceiveDlgs, AsyncHttpRequest::rpHigh));
+#else
Push(new AsyncHttpRequest(this, REQUEST_GET, "/method/execute.RetrieveUnreadMessages", true, &CVkProto::OnReceiveDlgs, AsyncHttpRequest::rpHigh));
+#endif
}
void CVkProto::OnReceiveMessages(NETLIBHTTPREQUEST *reply, AsyncHttpRequest *pReq)
|