summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM/src/constants.h
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2015-02-07 08:43:52 +0000
committerRobert Pösel <robyer@seznam.cz>2015-02-07 08:43:52 +0000
commit9fe7b9187d30041071ceebb4daf69cca38900b09 (patch)
tree7fe2efab376aed3ae7375e1017a2a0f05d52e515 /protocols/FacebookRM/src/constants.h
parentbca544e48bda364d28bf3d732e0b578683870ebf (diff)
Facebook: Implement and use activity_ping request
Maybe it's not needed at all, but maybe it will help something :) git-svn-id: http://svn.miranda-ng.org/main/trunk@12037 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM/src/constants.h')
-rw-r--r--protocols/FacebookRM/src/constants.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/protocols/FacebookRM/src/constants.h b/protocols/FacebookRM/src/constants.h
index f046b785a6..c2b892e954 100644
--- a/protocols/FacebookRM/src/constants.h
+++ b/protocols/FacebookRM/src/constants.h
@@ -62,6 +62,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define FACEBOOK_MESSAGES_ON_OPEN_LIMIT 99
#define FACEBOOK_TYPING_TIME 60
#define FACEBOOK_IGNORE_COUNTER_LIMIT 5 // how many consequent requests it should keep info about duplicit message ids
+#define FACEBOOK_PING_TIME 600 // every 10 minutes send activity_ping (it is just random/guessed value)
// Defaults
#define FACEBOOK_MINIMAL_POLL_RATE 10
@@ -144,7 +145,8 @@ enum RequestType {
REQUEST_MESSAGE_SEND_CHAT, // sending message through chat
REQUEST_MESSAGE_SEND_INBOX, // sending message through inbox
- REQUEST_MESSAGES_RECEIVE, // receiving messages
+ REQUEST_MESSAGES_RECEIVE, // receiving messages and other realtime actions
+ REQUEST_ACTIVE_PING, // sending activity ping
REQUEST_TYPING_SEND, // sending typing notification
REQUEST_THREAD_INFO, // getting thread info