diff options
Diffstat (limited to 'protocols/FacebookRM/src/communication.cpp')
-rw-r--r-- | protocols/FacebookRM/src/communication.cpp | 6 |
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??
|