From cb1562d3108207668ba3bb85e669f97bcaf23f96 Mon Sep 17 00:00:00 2001 From: ElzorFox Date: Fri, 27 Jun 2025 09:08:20 +0500 Subject: VKontakte: more fix for error 9 version bump --- protocols/VKontakte/src/vk_thread.cpp | 28 +++++++++++++++++++--------- 1 file changed, 19 insertions(+), 9 deletions(-) (limited to 'protocols/VKontakte/src/vk_thread.cpp') 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) -- cgit v1.2.3