From 563a5c7cdbdafd3991d4a542bb32224a3ab0816d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Sun, 17 Apr 2016 17:06:35 +0000 Subject: Facebook: Fix showing user's name for multi chat messages git-svn-id: http://svn.miranda-ng.org/main/trunk@16703 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/FacebookRM/src/json.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'protocols/FacebookRM') diff --git a/protocols/FacebookRM/src/json.cpp b/protocols/FacebookRM/src/json.cpp index d3cd1e7683..24709c4aab 100644 --- a/protocols/FacebookRM/src/json.cpp +++ b/protocols/FacebookRM/src/json.cpp @@ -613,14 +613,14 @@ int facebook_json_parser::parse_messages(std::string *pData, std::vector< facebo } facebook_message* message = new facebook_message(); + message->isChat = other_user_id.empty(); message->isIncoming = (id != proto->facy.self_.user_id); message->isUnread = message->isIncoming; message->message_text = message_text; message->time = utils::time::from_string(timestamp.as_string()); - message->user_id = other_user_id; + message->user_id = message->isChat ? id : other_user_id; message->message_id = message_id; message->thread_id = thread_id; - message->isChat = other_user_id.empty(); messages->push_back(message); } -- cgit v1.2.3