From 9fe7b9187d30041071ceebb4daf69cca38900b09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Sat, 7 Feb 2015 08:43:52 +0000 Subject: 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 --- protocols/FacebookRM/src/constants.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'protocols/FacebookRM/src/constants.h') 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 . #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 -- cgit v1.2.3