diff options
author | George Hazan <george.hazan@gmail.com> | 2013-10-22 20:53:12 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-10-22 20:53:12 +0000 |
commit | 35a5290171ab6ae3c943af7c1fc21d99bae5242c (patch) | |
tree | d4c3da969dfb6a43735620c874d66173e4fa5ef3 /protocols/VKontakte/src/vk_thread.cpp | |
parent | 15836886c666aa27d0fe5254dd356fc616c6c919 (diff) |
VK: fix for async avatars loading (especially for the case of avatars in clists)
git-svn-id: http://svn.miranda-ng.org/main/trunk@6596 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/VKontakte/src/vk_thread.cpp')
-rw-r--r-- | protocols/VKontakte/src/vk_thread.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/protocols/VKontakte/src/vk_thread.cpp b/protocols/VKontakte/src/vk_thread.cpp index 5dfabf3b08..1b73c38180 100644 --- a/protocols/VKontakte/src/vk_thread.cpp +++ b/protocols/VKontakte/src/vk_thread.cpp @@ -264,8 +264,8 @@ void CVkProto::OnReceiveUserInfo(NETLIBHTTPREQUEST *reply, AsyncHttpRequest *pRe }
}
- if (szValue = json_as_string( json_get(pRecord, "photo_medium")))
- setTString(hContact, "AvatarUrl", szValue);
+ szValue = json_as_string( json_get(pRecord, "photo_medium"));
+ SetAvatarUrl(hContact, szValue);
}
}
@@ -317,8 +317,8 @@ void CVkProto::OnReceiveFriends(NETLIBHTTPREQUEST *reply, AsyncHttpRequest *pReq if ( !tszNick.IsEmpty())
setTString(hContact, "Nick", tszNick);
- if (szValue = json_as_string( json_get(pInfo, "photo_medium")))
- setTString(hContact, "AvatarUrl", szValue);
+ szValue = json_as_string( json_get(pInfo, "photo_medium"));
+ SetAvatarUrl(hContact, szValue);
setWord(hContact, "Status", (json_as_int( json_get(pInfo, "online")) == 0) ? ID_STATUS_OFFLINE : ID_STATUS_ONLINE);
|