From dbaab06465505f7b1a3af13d944a362607732261 Mon Sep 17 00:00:00 2001 From: Sergey Bolhovskoy Date: Sun, 5 Oct 2014 11:10:07 +0000 Subject: VKontakte: fix for new friends fix for AuthState support git-svn-id: http://svn.miranda-ng.org/main/trunk@10698 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/VKontakte/src/vk_thread.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/protocols/VKontakte/src/vk_thread.cpp b/protocols/VKontakte/src/vk_thread.cpp index cd8a02e0b3..9357ba80b9 100644 --- a/protocols/VKontakte/src/vk_thread.cpp +++ b/protocols/VKontakte/src/vk_thread.cpp @@ -454,7 +454,8 @@ void CVkProto::OnReceiveFriends(NETLIBHTTPREQUEST *reply, AsyncHttpRequest *pReq LIST arContacts(10, PtrKeySortT); for (MCONTACT hContact = db_find_first(m_szModuleName); hContact; hContact = db_find_next(hContact, m_szModuleName)){ - db_unset(hContact, m_szModuleName, "Auth"); + if (!isChatRoom(hContact)) + setByte(hContact, "Auth", 1); db_unset(hContact, m_szModuleName, "ReqAuth"); SetMirVer(hContact, -1); if (bCleanContacts&&!isChatRoom(hContact)) @@ -466,7 +467,7 @@ void CVkProto::OnReceiveFriends(NETLIBHTTPREQUEST *reply, AsyncHttpRequest *pReq if (pItems) for (int i = 0; ihContact, msg.GetBuffer(), tszNick.GetBuffer()); - db_unset(param->hContact, m_szModuleName, "Auth"); + setByte(param->hContact, "Auth", 1); } } delete param; -- cgit v1.2.3