summaryrefslogtreecommitdiff
path: root/protocols/SkypeWeb/src/skype_profile.cpp
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2015-04-06 08:57:39 +0000
committerKirill Volinsky <mataes2007@gmail.com>2015-04-06 08:57:39 +0000
commit925a58a69d336f2535a1083ca05cb454e755e226 (patch)
tree511d3fa9c2d2bb6b585a7af2b4665f3b4017b8a2 /protocols/SkypeWeb/src/skype_profile.cpp
parent0cd6f180701a35abe5da0f4b0272b3047c03e330 (diff)
avatar support 1st attempt
git-svn-id: http://svn.miranda-ng.org/main/trunk@12623 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/SkypeWeb/src/skype_profile.cpp')
-rw-r--r--protocols/SkypeWeb/src/skype_profile.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/protocols/SkypeWeb/src/skype_profile.cpp b/protocols/SkypeWeb/src/skype_profile.cpp
index c260380fc2..3ddb5b56c9 100644
--- a/protocols/SkypeWeb/src/skype_profile.cpp
+++ b/protocols/SkypeWeb/src/skype_profile.cpp
@@ -427,8 +427,13 @@ void CSkypeProto::UpdateProfileXStatusMessage(JSONNODE *root, MCONTACT hContact)
void CSkypeProto::UpdateProfileAvatar(JSONNODE *root, MCONTACT hContact)
{
- //JSONNODE *node = json_get(root, "avatarUrl");
- // add avatar support
+ JSONNODE *node = json_get(root, "avatarUrl");
+ CMString province = mir_t2a(ptrT(json_as_string(node)));
+ if (!province.IsEmpty() && province != "null")
+ {
+ SetAvatarUrl(hContact, province);
+ ReloadAvatarInfo(hContact);
+ }
}
//{"firstname":"Echo \/ Sound Test Service", "lastname" : null, "birthday" : null, "gender" : null, "country" : null, "city" : null, "language" : null, "homepage" : null, "about" : null, "province" : null, "jobtitle" : null, "emails" : [], "phoneMobile" : null, "phoneHome" : null, "phoneOffice" : null, "mood" : null, "richMood" : null, "avatarUrl" : null, "username" : "echo123"}