From 1b9085e85ef8c1213854ef174d82102f4819d1b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Sun, 6 Jul 2014 09:12:43 +0000 Subject: Facebook: Improve invisible status (now it's true-invisible again) It's magic :-) git-svn-id: http://svn.miranda-ng.org/main/trunk@9705 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/FacebookRM/docs/facebook - readme.txt | 2 +- protocols/FacebookRM/src/connection.cpp | 10 ++-------- 2 files changed, 3 insertions(+), 9 deletions(-) (limited to 'protocols') diff --git a/protocols/FacebookRM/docs/facebook - readme.txt b/protocols/FacebookRM/docs/facebook - readme.txt index d991b3071e..49b79368ac 100644 --- a/protocols/FacebookRM/docs/facebook - readme.txt +++ b/protocols/FacebookRM/docs/facebook - readme.txt @@ -18,7 +18,7 @@ Info: Information about statuses -------------------------------- - Online = connected to fb, chat is online - - Invisible = connected to fb, but only for getting feeds and notifications - CHAT is OFFLINE + - Invisible = connected to fb, chat is offline, but you can still see other people online, receive messages, newsfeeds and notifications - Offline = disconnected -------------------------------- diff --git a/protocols/FacebookRM/src/connection.cpp b/protocols/FacebookRM/src/connection.cpp index 7ecc553f20..56673fe6df 100644 --- a/protocols/FacebookRM/src/connection.cpp +++ b/protocols/FacebookRM/src/connection.cpp @@ -129,12 +129,7 @@ void FacebookProto::ChangeStatus(void*) facy.chat_state(!m_invisible); - if (m_invisible) { - facy.buddies.clear(); - SetAllContactStatuses(ID_STATUS_OFFLINE); - } else { - ForkThread(&FacebookProto::ProcessBuddyList, NULL); - } + ForkThread(&FacebookProto::ProcessBuddyList, NULL); m_iStatus = facy.self_.status_id = new_status; ProtoBroadcastAck(0, ACKTYPE_STATUS, ACKRESULT_SUCCESS, (HANDLE)old_status, m_iStatus); @@ -188,8 +183,7 @@ void FacebookProto::UpdateLoop(void *) for (int i = -1; !isOffline(); i = ++i % 50) { if (i != -1) { - if (!isInvisible()) - ProcessBuddyList(NULL); + ProcessBuddyList(NULL); if (getByte(FACEBOOK_KEY_EVENT_FEEDS_ENABLE, DEFAULT_EVENT_FEEDS_ENABLE)) ProcessFeeds(NULL); -- cgit v1.2.3