summaryrefslogtreecommitdiff
path: root/protocols
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2016-04-17 17:06:35 +0000
committerRobert Pösel <robyer@seznam.cz>2016-04-17 17:06:35 +0000
commit563a5c7cdbdafd3991d4a542bb32224a3ab0816d (patch)
tree14e2a3c1e61d6d6edd5d96221d7421e09ebd809e /protocols
parent217cefab79fe09de8911fa3e94ff8c2fa6014a55 (diff)
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
Diffstat (limited to 'protocols')
-rw-r--r--protocols/FacebookRM/src/json.cpp4
1 files changed, 2 insertions, 2 deletions
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);
}