From 435046bc3c47635fddd6896d2d8614c3e668f969 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Sun, 29 Sep 2013 11:55:47 +0000 Subject: 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 --- protocols/FacebookRM/src/db.h | 1 + protocols/FacebookRM/src/process.cpp | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) 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 . #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; -- cgit v1.2.3