From 5e5cabbee2c2249be4e34efc9bafa1b05136111a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Tue, 17 May 2016 20:15:33 +0000 Subject: 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 --- protocols/FacebookRM/src/connection.cpp | 6 ------ 1 file changed, 6 deletions(-) (limited to 'protocols/FacebookRM/src/connection.cpp') 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 . 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); } -- cgit v1.2.3