summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2014-07-06 09:12:43 +0000
committerRobert Pösel <robyer@seznam.cz>2014-07-06 09:12:43 +0000
commit1b9085e85ef8c1213854ef174d82102f4819d1b1 (patch)
tree4e9e46926bc2853060cf9cfb598ffa111bcede08 /protocols/FacebookRM
parent93f16e67f028d5f7473a49a6be62ca3b5072cf0d (diff)
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
Diffstat (limited to 'protocols/FacebookRM')
-rw-r--r--protocols/FacebookRM/docs/facebook - readme.txt2
-rw-r--r--protocols/FacebookRM/src/connection.cpp10
2 files changed, 3 insertions, 9 deletions
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);