summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2016-04-17 12:13:32 +0000
committerRobert Pösel <robyer@seznam.cz>2016-04-17 12:13:32 +0000
commit1ea7cd86935d95f8d6ec91d11e7db84219400c64 (patch)
treee9a4122f4c76c83ddd468e78b402e87eb6d56fc0
parent1218cb54337c4683baf728bec19701da1f10e5ac (diff)
Facebook: Remove unused REQUEST_MESSAGE_SEND_INBOX request
git-svn-id: http://svn.miranda-ng.org/main/trunk@16686 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r--protocols/FacebookRM/src/communication.cpp13
-rw-r--r--protocols/FacebookRM/src/constants.h3
2 files changed, 5 insertions, 11 deletions
diff --git a/protocols/FacebookRM/src/communication.cpp b/protocols/FacebookRM/src/communication.cpp
index 602c7892e1..95deab843d 100644
--- a/protocols/FacebookRM/src/communication.cpp
+++ b/protocols/FacebookRM/src/communication.cpp
@@ -260,8 +260,7 @@ std::string facebook_client::choose_server(RequestType request_type)
// case REQUEST_IDENTITY_SWITCH:
// case REQUEST_CAPTCHA_REFRESH:
// case REQUEST_LINK_SCRAPER:
- // case REQUEST_MESSAGE_SEND_CHAT:
- // case REQUEST_MESSAGE_SEND_INBOX:
+ // case REQUEST_MESSAGES_SEND:
// case REQUEST_THREAD_INFO:
// case REQUEST_THREAD_SYNC:
// case REQUEST_VISIBILITY:
@@ -431,12 +430,9 @@ std::string facebook_client::choose_action(RequestType request_type, std::string
return action;
}
- case REQUEST_MESSAGE_SEND_CHAT:
+ case REQUEST_MESSAGES_SEND:
return "/ajax/mercury/send_messages.php?__a=1";
- case REQUEST_MESSAGE_SEND_INBOX:
- return "/ajax/messaging/send.php?";
-
case REQUEST_THREAD_INFO:
return "/ajax/mercury/thread_info.php?__a=1";
@@ -542,8 +538,7 @@ bool facebook_client::notify_errors(RequestType request_type)
switch (request_type)
{
case REQUEST_BUDDY_LIST:
- case REQUEST_MESSAGE_SEND_INBOX:
- case REQUEST_MESSAGE_SEND_CHAT:
+ case REQUEST_MESSAGES_SEND:
return false;
default:
@@ -1411,7 +1406,7 @@ int facebook_client::send_message(int seqid, MCONTACT hContact, const std::strin
{
ScopedLock s(send_message_lock_);
- resp = flap(REQUEST_MESSAGE_SEND_CHAT, &data); // NOTE: Request revised 11.2.2016
+ resp = flap(REQUEST_MESSAGES_SEND, &data); // NOTE: Request revised 11.2.2016
*error_text = resp.error_text;
diff --git a/protocols/FacebookRM/src/constants.h b/protocols/FacebookRM/src/constants.h
index aa25defd68..d86ea571d8 100644
--- a/protocols/FacebookRM/src/constants.h
+++ b/protocols/FacebookRM/src/constants.h
@@ -151,8 +151,7 @@ enum RequestType {
REQUEST_CANCEL_FRIENDSHIP, // canceling (our) friendship request
REQUEST_FRIENDSHIP, // approving or ignoring friendship requests
- REQUEST_MESSAGE_SEND_CHAT, // sending message through chat
- REQUEST_MESSAGE_SEND_INBOX, // sending message through inbox
+ REQUEST_MESSAGES_SEND, // sending messages
REQUEST_MESSAGES_RECEIVE, // receiving messages and other realtime actions
REQUEST_ACTIVE_PING, // sending activity ping
REQUEST_TYPING_SEND, // sending typing notification