summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2013-06-17 20:07:41 +0000
committerRobert Pösel <robyer@seznam.cz>2013-06-17 20:07:41 +0000
commit5041283ecb1955228ce05338e99062dfbccceb71 (patch)
treeefa169f8ee70db9dcbea4139ea3b4284d721db8c
parent6c4d3c9e3340e437d309e6d8d4acc3fb6de0d748 (diff)
Facebook: When receiving offline messages from new contact, get also his name.
git-svn-id: http://svn.miranda-ng.org/main/trunk@5002 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r--protocols/FacebookRM/src/process.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/protocols/FacebookRM/src/process.cpp b/protocols/FacebookRM/src/process.cpp
index 1ce4379c9f..974feb3844 100644
--- a/protocols/FacebookRM/src/process.cpp
+++ b/protocols/FacebookRM/src/process.cpp
@@ -350,10 +350,12 @@ void FacebookProto::ProcessUnreadMessage(void *tid_data)
return;
}
+ std::string name = utils::text::source_get_value(&messageslist, 2, "sender_name\":\"", "\"");
+
facebook_user fbu;
fbu.user_id = user_id;
- HANDLE hContact = AddToContactList(&fbu, FACEBOOK_CONTACT_NONE);
+ HANDLE hContact = AddToContactList(&fbu, FACEBOOK_CONTACT_NONE, false, name.c_str());
// TODO: if contact is newly added, get his user info
// TODO: maybe create new "receiveMsg" function and use it for offline and channel messages?