summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM/src/messages.cpp
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2013-11-17 23:36:16 +0000
committerRobert Pösel <robyer@seznam.cz>2013-11-17 23:36:16 +0000
commit9b2a534f778e0d5114fd0c72878421bbc485b309 (patch)
tree31a052ad3e1df392044af8b107c338e893100b01 /protocols/FacebookRM/src/messages.cpp
parentb31c85fadafb41df147ff0c27baa04a23a48a27e (diff)
Facebook: Added hidden option to keep messages unread (as requested by Guenter Gruene)
Add byte key "KeepUnread" with value 1 to account settings or to particular contact git-svn-id: http://svn.miranda-ng.org/main/trunk@6933 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM/src/messages.cpp')
-rw-r--r--protocols/FacebookRM/src/messages.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/protocols/FacebookRM/src/messages.cpp b/protocols/FacebookRM/src/messages.cpp
index cc75d048dd..e9c1cd4c0e 100644
--- a/protocols/FacebookRM/src/messages.cpp
+++ b/protocols/FacebookRM/src/messages.cpp
@@ -169,8 +169,11 @@ void FacebookProto::ReadMessageWorker(void *p)
{
if (p == NULL)
return;
-
+
HANDLE hContact = static_cast<HANDLE>(p);
+
+ if (getBool(FACEBOOK_KEY_KEEP_UNREAD, 0) || getBool(hContact, FACEBOOK_KEY_KEEP_UNREAD, 0))
+ return;
// mark message read (also send seen info)
ptrA mid( getStringA(hContact, FACEBOOK_KEY_MESSAGE_ID));