summaryrefslogtreecommitdiff
path: root/protocols
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2014-03-18 22:54:05 +0000
committerRobert Pösel <robyer@seznam.cz>2014-03-18 22:54:05 +0000
commitb64a452a1787bb1a46ec50babc8d713afe73ca58 (patch)
treef4b42dcae4cf4745f1f7d11909289c6b0349daf0 /protocols
parenta7e413f32887db2e18c59bce9c06c4661867ba3f (diff)
Facebook: Don't show own name for unknown contacts, that are loaded when we load sent message from other device
git-svn-id: http://svn.miranda-ng.org/main/trunk@8654 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols')
-rw-r--r--protocols/FacebookRM/src/json.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/FacebookRM/src/json.cpp b/protocols/FacebookRM/src/json.cpp
index ac53334fe5..0cce660a62 100644
--- a/protocols/FacebookRM/src/json.cpp
+++ b/protocols/FacebookRM/src/json.cpp
@@ -578,7 +578,7 @@ int facebook_json_parser::parse_messages(void* data, std::vector< facebook_messa
message->isIncoming = (id != proto->facy.self_.user_id);
message->message_text = message_text;
- message->sender_name = utils::text::special_expressions_decode(utils::text::slashu_to_utf8(json_as_pstring(sender_name)));
+ message->sender_name = message->isIncoming ? utils::text::special_expressions_decode(utils::text::slashu_to_utf8(json_as_pstring(sender_name))) : "";
message->time = utils::time::fix_timestamp(json_as_float(timestamp));
message->thread_id = json_as_pstring(tid);
message->user_id = message->isIncoming ? id : proto->ThreadIDToContactID(message->thread_id); // TODO: Check if we have contact with this user_id in friendlist and otherwise do something different?