diff options
author | Robert Pösel <robyer@seznam.cz> | 2015-04-27 22:05:20 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2015-04-27 22:05:20 +0000 |
commit | 19eac0d00af3e4c2fd4e5d375bd54472f0e08dcd (patch) | |
tree | 2fc133a8d6177d5d88097d6bff7eede12025364a /protocols/FacebookRM/src/messages.cpp | |
parent | bd5a6cebc05210166ce877e89e8597abdb1a4a48 (diff) |
Facebook: Reworked sending messages a bit; Version bump
This might fix the "computer needs cleaning" error. I removed all old send message methods and used only Mercury for everything - which is how it is used on website right now.
Also parameters for send message request were updated to actual state. This might fix problem that someone has (if I remember correctly) with sending chat messages.
git-svn-id: http://svn.miranda-ng.org/main/trunk@13214 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM/src/messages.cpp')
-rw-r--r-- | protocols/FacebookRM/src/messages.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/FacebookRM/src/messages.cpp b/protocols/FacebookRM/src/messages.cpp index f5be08b2fc..0fc60765cd 100644 --- a/protocols/FacebookRM/src/messages.cpp +++ b/protocols/FacebookRM/src/messages.cpp @@ -52,7 +52,7 @@ void FacebookProto::SendMsgWorker(void *p) std::string error_text; int result = SEND_MESSAGE_ERROR; while (result == SEND_MESSAGE_ERROR && retries > 0) { - result = facy.send_message(data->msgid, data->hContact, std::string(id), data->msg, &error_text, retries % 2 == 0 ? MESSAGE_INBOX : MESSAGE_MERCURY); + result = facy.send_message(data->msgid, data->hContact, data->msg, &error_text); retries--; } if (result == SEND_MESSAGE_OK) { @@ -101,7 +101,7 @@ void FacebookProto::SendChatMsgWorker(void *p) } if (!tid.empty()) { - if (facy.send_message(0, hContact, tid, data->msg, &err_message, MESSAGE_TID) == SEND_MESSAGE_OK) + if (facy.send_message(0, hContact, data->msg, &err_message) == SEND_MESSAGE_OK) UpdateChat(_A2T(data->chat_id.c_str()), facy.self_.user_id.c_str(), facy.self_.real_name.c_str(), data->msg.c_str()); else UpdateChat(_A2T(data->chat_id.c_str()), NULL, NULL, err_message.c_str()); |