From 3ff89e16119e063eb5719679e7b34d306116b265 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Wed, 2 Apr 2014 22:53:15 +0000 Subject: Facebook: Add support for showing unread notifications count as "unread emails" in clist git-svn-id: http://svn.miranda-ng.org/main/trunk@8831 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/FacebookRM/src/process.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'protocols/FacebookRM/src/process.cpp') diff --git a/protocols/FacebookRM/src/process.cpp b/protocols/FacebookRM/src/process.cpp index c06143bc69..0fd44897ce 100644 --- a/protocols/FacebookRM/src/process.cpp +++ b/protocols/FacebookRM/src/process.cpp @@ -552,9 +552,6 @@ void FacebookProto::ProcessNotifications(void*) if (isOffline()) return; - if (!getByte(FACEBOOK_KEY_EVENT_NOTIFICATIONS_ENABLE, DEFAULT_EVENT_NOTIFICATIONS_ENABLE)) - return; - facy.handle_entry("notifications"); // Get notifications @@ -577,6 +574,11 @@ void FacebookProto::ProcessNotifications(void*) p->parse_notifications(&(resp.data), ¬ifications); delete p; + facy.notifications_count_ = notifications.size(); + + if (!getByte(FACEBOOK_KEY_EVENT_NOTIFICATIONS_ENABLE, DEFAULT_EVENT_NOTIFICATIONS_ENABLE)) + return; + for(std::vector::size_type i=0; itext.c_str()); -- cgit v1.2.3