diff options
author | Robert Pösel <robyer@seznam.cz> | 2017-04-23 14:09:59 +0200 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2017-04-23 15:20:17 +0200 |
commit | 740a34b1053593cb728f7615ba9bcbad4558e428 (patch) | |
tree | 960ce9ccae04cf0941146feb302f049bec53a276 | |
parent | f46b52644c9aa53f43bb3a828b31c0549007d9df (diff) |
Facebook: Try to send message only once
This commit temporarily ignores option to try to send message multiple times if one attempt fails. Let's see if this helps somehow with recent issues with sending messages.
-rw-r--r-- | protocols/FacebookRM/src/messages.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/protocols/FacebookRM/src/messages.cpp b/protocols/FacebookRM/src/messages.cpp index a2ada53862..8fa798548d 100644 --- a/protocols/FacebookRM/src/messages.cpp +++ b/protocols/FacebookRM/src/messages.cpp @@ -45,14 +45,17 @@ void FacebookProto::SendMsgWorker(void *p) ProtoBroadcastAck(data->hContact, ACKTYPE_MESSAGE, ACKRESULT_FAILED, (HANDLE)data->msgid, 0); } else { - int tries = getByte(FACEBOOK_KEY_SEND_MESSAGE_TRIES, 1); + // FIXME: Temporarily disabled 23.4.2017 + /*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); |