From 5041283ecb1955228ce05338e99062dfbccceb71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Mon, 17 Jun 2013 20:07:41 +0000 Subject: 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 --- protocols/FacebookRM/src/process.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'protocols') 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? -- cgit v1.2.3