diff options
author | ElzorFox <elzorfox@ya.ru> | 2025-06-27 09:08:20 +0500 |
---|---|---|
committer | ElzorFox <elzorfox@ya.ru> | 2025-06-27 09:08:20 +0500 |
commit | cb1562d3108207668ba3bb85e669f97bcaf23f96 (patch) | |
tree | a0ad5b531b5ae41fdc5825a8e8b0f7dda3a0554f | |
parent | 83c14ef353cd9fd7fbf35458809ed6bd8c0a9c49 (diff) |
VKontakte:
more fix for error 9
version bump
-rw-r--r-- | protocols/VKontakte/src/version.h | 2 | ||||
-rw-r--r-- | protocols/VKontakte/src/vk_thread.cpp | 28 |
2 files changed, 20 insertions, 10 deletions
diff --git a/protocols/VKontakte/src/version.h b/protocols/VKontakte/src/version.h index 23a5262572..6c2d7c50f6 100644 --- a/protocols/VKontakte/src/version.h +++ b/protocols/VKontakte/src/version.h @@ -1,7 +1,7 @@ #define __MAJOR_VERSION 0
#define __MINOR_VERSION 1
#define __RELEASE_NUM 19
-#define __BUILD_NUM 1
+#define __BUILD_NUM 2
#include <stdver.h>
diff --git a/protocols/VKontakte/src/vk_thread.cpp b/protocols/VKontakte/src/vk_thread.cpp index 6a3771ce48..87820273ad 100644 --- a/protocols/VKontakte/src/vk_thread.cpp +++ b/protocols/VKontakte/src/vk_thread.cpp @@ -288,11 +288,11 @@ void CVkProto::OnReceiveMyInfo(MHttpResponse *reply, AsyncHttpRequest *pReq) WriteVKUserID(0, m_iMyUserId);
OnLoggedIn();
- RetrieveUserInfo(m_iMyUserId);
TrackVisitor();
RetrieveUnreadMessages();
RetrieveFriends(m_vkOptions.bLoadOnlyFriends);
RetrievePollingInfo();
+ RetrieveUserInfo(m_iMyUserId);
}
MCONTACT CVkProto::SetContactInfo(const JSONNode &jnItem, bool bFlag, VKContactType vkContactType)
@@ -548,7 +548,15 @@ void CVkProto::RetrieveUserInfo(VKUserID_t iUserId) CMStringA szUserId(FORMAT, "%d", iUserId);
- Push(new AsyncHttpRequest(this, REQUEST_POST, "/method/execute.RetrieveUserInfo", true, &CVkProto::OnReceiveUserFrameInfo)
+ Push(
+ new AsyncHttpRequest(
+ this,
+ REQUEST_POST,
+ "/method/execute.RetrieveUserInfo",
+ true,
+ &CVkProto::OnReceiveUserFrameInfo,
+ AsyncHttpRequest::rpLowCListEvents
+ )
<< INT_PARAM("userid", iUserId)
<< CHAR_PARAM("fields", szFieldsName)
)->pUserInfo = mir_strdup(szUserId.c_str());
@@ -582,13 +590,15 @@ void CVkProto::RetrieveUsersFrameInfo(CMStringA& szUserIds, bool bFreeOffline, b if (!IsOnline() || szUserIds.IsEmpty())
return;
- Push(new AsyncHttpRequest(this,
- REQUEST_POST,
- "/method/execute.RetrieveUsersFrameInfo",
- true,
- &CVkProto::OnReceiveUserFrameInfo,
- bFreeOffline ? AsyncHttpRequest::rpLowCListEvents : AsyncHttpRequest::rpMedium
- )
+ Push(
+ new AsyncHttpRequest(
+ this,
+ REQUEST_POST,
+ "/method/execute.RetrieveUsersFrameInfo",
+ true,
+ &CVkProto::OnReceiveUserFrameInfo,
+ AsyncHttpRequest::rpLowCListEvents
+ )
<< CHAR_PARAM("userids", szUserIds)
<< CHAR_PARAM("fields", (bFreeOffline ? "online,status,can_write_private_message" : szFieldsName))
<< INT_PARAM("norepeat", (int)bRepeat)
|