summaryrefslogtreecommitdiff
path: root/protocols
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2014-08-07 00:21:00 +0000
committerRobert Pösel <robyer@seznam.cz>2014-08-07 00:21:00 +0000
commit523df843b25d660da107d6e954fa2127bf02e082 (patch)
tree952448b3ad82f4852948f6ad4f982de4bca39417 /protocols
parent83a9913e0df76ce771a25e6816f8f8a0a58758f1 (diff)
Facebook: Fix showing duplicit sent messages when sending through inbox
git-svn-id: http://svn.miranda-ng.org/main/trunk@10103 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols')
-rw-r--r--protocols/FacebookRM/src/communication.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/protocols/FacebookRM/src/communication.cpp b/protocols/FacebookRM/src/communication.cpp
index e213a68fcc..6064378b10 100644
--- a/protocols/FacebookRM/src/communication.cpp
+++ b/protocols/FacebookRM/src/communication.cpp
@@ -1227,6 +1227,8 @@ bool facebook_client::send_message(MCONTACT hContact, std::string message_recipi
{
// Remember this message id
std::string mid = utils::text::source_get_value(&resp.data, 2, "\"message_id\":\"", "\"");
+ if (mid.empty())
+ mid = utils::text::source_get_value(&resp.data, 2, "\"mid\":\"", "\"");
parent->setString(hContact, FACEBOOK_KEY_MESSAGE_ID, mid.c_str());
messages_ignore.insert(std::make_pair(mid, 0));
} break;