summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--protocols/FacebookRM/src/proto.cpp9
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);