diff options
author | Robert Pösel <robyer@seznam.cz> | 2016-07-16 13:38:10 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2016-07-16 13:38:10 +0000 |
commit | 0bb0c182d694b7c1f4184e8da17d68705c441d8c (patch) | |
tree | 09b965261fb40e1bbae9537cb1045e98febf5130 /protocols | |
parent | 3a30fdfc6c545ba51cf1587b58b22316f2622e8f (diff) |
Facebook: Save correct contact type on update
git-svn-id: http://svn.miranda-ng.org/main/trunk@17100 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols')
-rw-r--r-- | protocols/FacebookRM/src/proto.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/protocols/FacebookRM/src/proto.cpp b/protocols/FacebookRM/src/proto.cpp index 109388bd8b..ef882975e0 100644 --- a/protocols/FacebookRM/src/proto.cpp +++ b/protocols/FacebookRM/src/proto.cpp @@ -356,8 +356,15 @@ int FacebookProto::GetInfo(MCONTACT hContact, int) SaveName(hContact, &fbu); } - if (fbu.gender) + if (fbu.gender) { setByte(hContact, "Gender", fbu.gender); + } + + if (fbu.type == CONTACT_PAGE || fbu.type == CONTACT_FRIEND) { + if (getByte(hContact, FACEBOOK_KEY_CONTACT_TYPE) != fbu.type) { + setByte(hContact, FACEBOOK_KEY_CONTACT_TYPE, fbu.type); + } + } CheckAvatarChange(hContact, fbu.image_url); |