diff options
author | Robert Pösel <robyer@seznam.cz> | 2014-05-18 09:47:16 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2014-05-18 09:47:16 +0000 |
commit | 40b63e431bc8c68c91a32ca7a62337b97da30b91 (patch) | |
tree | f2275227a581dbea5ee64894ff0a055e8fd87c06 /protocols/FacebookRM/src/contacts.cpp | |
parent | 6dc04b78d9232b10ff34942c9f225811dfc2889c (diff) |
Facebook: Refactor getting small avatars
Now they are always square, 50x50 or 32x32 (if we couldn't get bigger one).
git-svn-id: http://svn.miranda-ng.org/main/trunk@9216 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM/src/contacts.cpp')
-rw-r--r-- | protocols/FacebookRM/src/contacts.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/protocols/FacebookRM/src/contacts.cpp b/protocols/FacebookRM/src/contacts.cpp index 07c123b6c5..5c82419ac1 100644 --- a/protocols/FacebookRM/src/contacts.cpp +++ b/protocols/FacebookRM/src/contacts.cpp @@ -222,8 +222,7 @@ MCONTACT FacebookProto::AddToContactList(facebook_user* fbu, ContactType type, b if (fbu->gender) setByte(hContact, "Gender", fbu->gender); - if (!fbu->image_url.empty()) - setString(hContact, FACEBOOK_KEY_AV_URL, fbu->image_url.c_str()); + CheckAvatarChange(hContact, fbu->image_url); } return hContact; |