summaryrefslogtreecommitdiff
path: root/protocols
diff options
context:
space:
mode:
authorSergey Bolhovskoy <elzorfox@ya.ru>2014-10-05 11:10:07 +0000
committerSergey Bolhovskoy <elzorfox@ya.ru>2014-10-05 11:10:07 +0000
commitdbaab06465505f7b1a3af13d944a362607732261 (patch)
tree60fb8f62d2c74d50f6fdb28e25ae654632565f02 /protocols
parentb4fd0f839902901d4fff9da392bcf5d3c2a9c783 (diff)
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
Diffstat (limited to 'protocols')
-rw-r--r--protocols/VKontakte/src/vk_thread.cpp7
1 files 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<void> 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; i<iCount; i++) {
- MCONTACT hContact = SetContactInfo(json_at(pItems, i));
+ MCONTACT hContact = SetContactInfo(json_at(pItems, i), true);
if ((hContact == NULL) || hContact == -1)
continue;
@@ -905,7 +906,7 @@ void CVkProto::OnReceiveDeleteFriend(NETLIBHTTPREQUEST* reply, AsyncHttpRequest*
msg.AppendFormat(msgformat, tszNick);
MsgPopup(param->hContact, msg.GetBuffer(), tszNick.GetBuffer());
- db_unset(param->hContact, m_szModuleName, "Auth");
+ setByte(param->hContact, "Auth", 1);
}
}
delete param;