summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM/src/connection.cpp
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2014-04-21 14:50:46 +0000
committerRobert Pösel <robyer@seznam.cz>2014-04-21 14:50:46 +0000
commit0b73250a247cee60ee3f1098f584ae63148e0cee (patch)
tree1e86d94565eb6b28ff1f00d703e9a96dfb6d9df9 /protocols/FacebookRM/src/connection.cpp
parentcebc18b4b133798537488e8cb7ea8c0cb9966314 (diff)
Facebook: Support for true invisible! (they don't see you, but you see them)
git-svn-id: http://svn.miranda-ng.org/main/trunk@9013 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM/src/connection.cpp')
-rw-r--r--protocols/FacebookRM/src/connection.cpp12
1 files changed, 3 insertions, 9 deletions
diff --git a/protocols/FacebookRM/src/connection.cpp b/protocols/FacebookRM/src/connection.cpp
index abe78a324a..4ff500a31b 100644
--- a/protocols/FacebookRM/src/connection.cpp
+++ b/protocols/FacebookRM/src/connection.cpp
@@ -120,13 +120,8 @@ void FacebookProto::ChangeStatus(void*)
ToggleStatusMenuItems(true);
debugLogA("***** SignOn complete");
}
- else if (new_status == ID_STATUS_INVISIBLE)
- {
- facy.buddies.clear();
- this->SetAllContactStatuses(ID_STATUS_OFFLINE);
- }
- facy.chat_state(m_iDesiredStatus != ID_STATUS_INVISIBLE);
+ facy.chat_state(m_iDesiredStatus != ID_STATUS_INVISIBLE);
facy.buddy_list();
m_iStatus = facy.self_.status_id = m_iDesiredStatus;
@@ -181,9 +176,8 @@ void FacebookProto::UpdateLoop(void *)
for (int i = -1; !isOffline(); i = ++i % 50)
{
if (i != -1) {
- if (!facy.invisible_)
- if (!facy.buddy_list())
- break;
+ if (!facy.buddy_list())
+ break;
}
if (i == 2 && getByte(FACEBOOK_KEY_EVENT_FEEDS_ENABLE, DEFAULT_EVENT_FEEDS_ENABLE))
if (!facy.feeds())