summaryrefslogtreecommitdiff
path: root/protocols
diff options
context:
space:
mode:
Diffstat (limited to 'protocols')
-rw-r--r--protocols/FacebookRM/src/json.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/protocols/FacebookRM/src/json.cpp b/protocols/FacebookRM/src/json.cpp
index 866a140e8b..c84a784c63 100644
--- a/protocols/FacebookRM/src/json.cpp
+++ b/protocols/FacebookRM/src/json.cpp
@@ -464,7 +464,9 @@ int facebook_json_parser::parse_messages(std::string *pData, std::vector< facebo
if (ignore_duplicits(proto, message_id, message_text))
continue;
- facebook_message* message = new facebook_message();
+ message_text = utils::text::trim(message_text, true);
+
+ facebook_message* message = new facebook_message();
message->isChat = other_user_id.empty();
message->isIncoming = (id != proto->facy.self_.user_id);
message->isUnread = message->isIncoming;