summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM/src/connection.cpp
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2016-05-17 20:15:33 +0000
committerRobert Pösel <robyer@seznam.cz>2016-05-17 20:15:33 +0000
commit5e5cabbee2c2249be4e34efc9bafa1b05136111a (patch)
tree5705bd162306f31b1d41dc2b1d48ae53ca4046d4 /protocols/FacebookRM/src/connection.cpp
parent82cd0bd751e964a84746740abd03a419b8b80532 (diff)
Facebook: Rework loading online contacts (not properly finished!); version bump
This is work in progress, which might (and will) cause wrong status reporting and maybe related problems. On the other hand this way is only "preferred" way. Previous way (using buddy_list request) isn't used anymore and might cause the captcha problems and antivirus checks from FB... git-svn-id: http://svn.miranda-ng.org/main/trunk@16843 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM/src/connection.cpp')
-rw-r--r--protocols/FacebookRM/src/connection.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/protocols/FacebookRM/src/connection.cpp b/protocols/FacebookRM/src/connection.cpp
index 4a34435549..06222249fc 100644
--- a/protocols/FacebookRM/src/connection.cpp
+++ b/protocols/FacebookRM/src/connection.cpp
@@ -25,7 +25,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
void FacebookProto::ChangeStatus(void*)
{
ScopedLock s(signon_lock_);
- ScopedLock b(facy.buddies_lock_);
int new_status = m_iDesiredStatus;
int old_status = m_iStatus;
@@ -64,7 +63,6 @@ void FacebookProto::ChangeStatus(void*)
facy.clear_notifications();
facy.clear_chatrooms();
facy.clear_readers();
- facy.buddies.clear();
facy.messages_ignore.clear();
facy.messages_timestamp.clear();
facy.pages.clear();
@@ -168,8 +166,6 @@ void FacebookProto::ChangeStatus(void*)
facy.chat_state(!m_invisible);
- ForkThread(&FacebookProto::ProcessBuddyList, NULL);
-
m_iStatus = facy.self_.status_id = new_status;
ProtoBroadcastAck(0, ACKTYPE_STATUS, ACKRESULT_SUCCESS, (HANDLE)old_status, m_iStatus);
@@ -216,8 +212,6 @@ void FacebookProto::UpdateLoop(void *)
for (int i = -1; !isOffline(); i = (i + 1) % 50)
{
if (i != -1) {
- ProcessBuddyList(NULL);
-
if (getByte(FACEBOOK_KEY_EVENT_FEEDS_ENABLE, DEFAULT_EVENT_FEEDS_ENABLE))
ProcessFeeds(NULL);
}