diff options
author | Robert Pösel <robyer@seznam.cz> | 2013-09-29 11:55:47 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2013-09-29 11:55:47 +0000 |
commit | 435046bc3c47635fddd6896d2d8614c3e668f969 (patch) | |
tree | bcf415bd385106c182c2774cba367a671e253a38 | |
parent | 6e05bfee48c12fcbe2a4533b47d56a58c91c3424 (diff) |
Facebook: don't use local_timestamp for unread messages by default, use hidden setting to enable it
git-svn-id: http://svn.miranda-ng.org/main/trunk@6267 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r-- | protocols/FacebookRM/src/db.h | 1 | ||||
-rw-r--r-- | protocols/FacebookRM/src/process.cpp | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/protocols/FacebookRM/src/db.h b/protocols/FacebookRM/src/db.h index cfe3140711..d009139627 100644 --- a/protocols/FacebookRM/src/db.h +++ b/protocols/FacebookRM/src/db.h @@ -60,6 +60,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. #define FACEBOOK_KEY_DISABLE_LOGOUT "DisableLogout" // [HIDDEN]
#define FACEBOOK_KEY_VALIDATE_RESPONSE "ValidateResponse" // [HIDDEN] - 0 = standard, 1 = always, 2 = never
#define FACEBOOK_KEY_LOCALE "Locale" // [HIDDEN] - en_US, cs_CZ, etc.
+#define FACEBOOK_KEY_LOCAL_TIMESTAMP_UNREAD "UseLocalTimestampUnread" // [HIDDEN] - 1 = use local timestamp for offline messages
#define FACEBOOK_KEY_EVENT_NOTIFICATIONS_ENABLE "EventNotificationsEnable"
#define FACEBOOK_KEY_EVENT_FEEDS_ENABLE "EventFeedsEnable"
diff --git a/protocols/FacebookRM/src/process.cpp b/protocols/FacebookRM/src/process.cpp index ba898f0ca1..8b72f2e11d 100644 --- a/protocols/FacebookRM/src/process.cpp +++ b/protocols/FacebookRM/src/process.cpp @@ -322,7 +322,8 @@ void FacebookProto::ProcessUnreadMessage(void *p) int offset = 0;
int limit = 21;
- bool local_timestamp = getBool(FACEBOOK_KEY_LOCAL_TIMESTAMP, 0);
+ // don't use local_timestamp for unread messages by default, use hidden setting to enable it
+ bool local_timestamp = getBool(FACEBOOK_KEY_LOCAL_TIMESTAMP_UNREAD, 0);
http::response resp;
|