From 19eac0d00af3e4c2fd4e5d375bd54472f0e08dcd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Mon, 27 Apr 2015 22:05:20 +0000 Subject: 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 --- protocols/FacebookRM/src/messages.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'protocols/FacebookRM/src/messages.cpp') 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()); -- cgit v1.2.3