summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2016-04-21 07:15:18 +0000
committerRobert Pösel <robyer@seznam.cz>2016-04-21 07:15:18 +0000
commit2384d4612f4d973ace00f3c231648c62661fb470 (patch)
tree65edaeb8543a96d508ba67edebccb644c3ee9d0f /protocols/FacebookRM
parentd90b486570bdcc339d1f903e94fde9668c7baa00 (diff)
Facebook: Trim received messages text from spaces at begin/end
git-svn-id: http://svn.miranda-ng.org/main/trunk@16727 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM')
-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;