summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--protocols/FacebookRM/src/client.h3
-rw-r--r--protocols/FacebookRM/src/connection.cpp12
-rw-r--r--protocols/FacebookRM/src/proto.cpp2
3 files changed, 4 insertions, 13 deletions
diff --git a/protocols/FacebookRM/src/client.h b/protocols/FacebookRM/src/client.h
index bbd7eb45dc..3e6993eb9a 100644
--- a/protocols/FacebookRM/src/client.h
+++ b/protocols/FacebookRM/src/client.h
@@ -43,7 +43,7 @@ public:
msgid_ = error_count_ = last_feeds_update_ = last_notification_time_ = 0;
- https_ = is_idle_ = invisible_ = is_typing_ = false;
+ https_ = is_idle_ = is_typing_ = false;
buddies_lock_ = send_message_lock_ = NULL;
hMsgCon = NULL;
@@ -76,7 +76,6 @@ public:
std::string chat_sticky_num_;
std::string chat_conn_num_;
std::string chat_clientid_;
- bool invisible_;
bool is_typing_;
bool is_idle_;
bool https_;
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())
diff --git a/protocols/FacebookRM/src/proto.cpp b/protocols/FacebookRM/src/proto.cpp
index 9be2277fe1..2b66d99e5a 100644
--- a/protocols/FacebookRM/src/proto.cpp
+++ b/protocols/FacebookRM/src/proto.cpp
@@ -174,8 +174,6 @@ int FacebookProto::SetStatus(int new_status)
return 0;
}
- facy.invisible_ = (new_status == ID_STATUS_INVISIBLE);
-
ForkThread(&FacebookProto::ChangeStatus, this);
return 0;
}