summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM/src/communication.cpp
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2013-05-23 15:35:31 +0000
committerRobert Pösel <robyer@seznam.cz>2013-05-23 15:35:31 +0000
commit1100cf0fc0aa447cb2390409c8dcea9deebe3d4f (patch)
tree569c28d3028d3122d87495ccb754d0ef03756b64 /protocols/FacebookRM/src/communication.cpp
parentd9c995acca09460e8b8533c7efdb5eddd6e61d73 (diff)
Facebook: Load sent messages from browser into Miranda.
git-svn-id: http://svn.miranda-ng.org/main/trunk@4811 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM/src/communication.cpp')
-rw-r--r--protocols/FacebookRM/src/communication.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/protocols/FacebookRM/src/communication.cpp b/protocols/FacebookRM/src/communication.cpp
index 5cfd9fab99..cb2e0a3f4a 100644
--- a/protocols/FacebookRM/src/communication.cpp
+++ b/protocols/FacebookRM/src/communication.cpp
@@ -1164,7 +1164,11 @@ bool facebook_client::send_message(std::string message_recipient, std::string me
switch (resp.error_number)
{
case 0: // Everything is OK
- break;
+ {
+ // Remember this message id
+ std::string mid = utils::text::source_get_value(&resp.data, 2, "\"message_id\":\"", "\"");
+ messages_sent.insert(mid);
+ } break;
//case 1356002: // You are offline - wtf??