From 2384d4612f4d973ace00f3c231648c62661fb470 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Thu, 21 Apr 2016 07:15:18 +0000 Subject: 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 --- protocols/FacebookRM/src/json.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'protocols') 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; -- cgit v1.2.3