diff options
author | Robert Pösel <robyer@seznam.cz> | 2017-05-05 23:37:29 +0200 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2017-05-05 23:38:42 +0200 |
commit | e8c3255b20356bcbf80f0579132ff767b745c4e8 (patch) | |
tree | 0ee63fafa2018158e24d557c51b96ce550c10896 /protocols | |
parent | f631072b6932918a4ee19ff64532cd4494f8e9e4 (diff) |
Revert "Facebook: Try to send message only once" (commit 740a34b1053593cb728f7615ba9bcbad4558e428)
Diffstat (limited to 'protocols')
-rw-r--r-- | protocols/FacebookRM/src/messages.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/protocols/FacebookRM/src/messages.cpp b/protocols/FacebookRM/src/messages.cpp index 8e100eb870..8054934261 100644 --- a/protocols/FacebookRM/src/messages.cpp +++ b/protocols/FacebookRM/src/messages.cpp @@ -45,17 +45,14 @@ void FacebookProto::SendMsgWorker(void *p) ProtoBroadcastAck(data->hContact, ACKTYPE_MESSAGE, ACKRESULT_FAILED, (HANDLE)data->msgid, 0); } else { - // FIXME: Temporarily disabled 23.4.2017 - /*int tries = getByte(FACEBOOK_KEY_SEND_MESSAGE_TRIES, 1); + int tries = getByte(FACEBOOK_KEY_SEND_MESSAGE_TRIES, 1); tries = min(max(tries, 1), 5); std::string error_text; int result = SEND_MESSAGE_ERROR; while (result == SEND_MESSAGE_ERROR && tries-- > 0) { result = facy.send_message(data->msgid, data->hContact, data->msg, &error_text); - }*/ - std::string error_text; - int result = facy.send_message(data->msgid, data->hContact, data->msg, &error_text); + } if (result == SEND_MESSAGE_OK) { ProtoBroadcastAck(data->hContact, ACKTYPE_MESSAGE, ACKRESULT_SUCCESS, (HANDLE)data->msgid, 0); |