From 2ec2fe72f5754f59363335f9d5578600022661a1 Mon Sep 17 00:00:00 2001 From: watcherhd Date: Thu, 26 Apr 2012 20:02:14 +0000 Subject: FacebookRM: version bump Version 0.0.8.1 ! Fixed getting notifications on login ! Fixed getting unread messages on login ! Getting unread messages on login with right timestamp ! Fixed getting newsfeeds ! Fixed related to deleting contacts from miranda/server + New newsfeed type option "Applications and Games" + Contacts now have MirVer "Facebook" (for Fingerpring plugin) + Getting attachements for unread messages on login ! Fixed avatars in Miranda 0.10.0#3 and newer (thanks borkra) ! Some small fixes (thanks borkra) x Doesn't work notification about friend requests git-svn-id: http://miranda-plugins.googlecode.com/svn/trunk@289 e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb --- FacebookRM/connection.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'FacebookRM/connection.cpp') diff --git a/FacebookRM/connection.cpp b/FacebookRM/connection.cpp index d26b9a3..d60b1ec 100644 --- a/FacebookRM/connection.cpp +++ b/FacebookRM/connection.cpp @@ -91,6 +91,9 @@ void FacebookProto::ChangeStatus(void*) facy.load_friends(); + if (getByte(FACEBOOK_KEY_PARSE_MESSAGES, DEFAULT_PARSE_MESSAGES)) + ForkThread( &FacebookProto::ProcessUnreadMessages, this ); + setDword( "LogonTS", (DWORD)time(NULL) ); ForkThread( &FacebookProto::UpdateLoop, this ); ForkThread( &FacebookProto::MessageLoop, this ); @@ -123,7 +126,6 @@ void FacebookProto::ChangeStatus(void*) facy.chat_state( m_iDesiredStatus != ID_STATUS_INVISIBLE ); facy.buddy_list( ); - facy.facepiles( ); m_iStatus = facy.self_.status_id = m_iDesiredStatus; ProtoBroadcastAck(m_szModuleName, 0, ACKTYPE_STATUS, ACKRESULT_SUCCESS, (HANDLE)old_status, m_iStatus); @@ -175,6 +177,9 @@ bool FacebookProto::NegotiateConnection( ) DBFreeVariant(&dbv); } + // Get info about secured connection + facy.https_ = DBGetContactSettingByte(NULL, m_szModuleName, FACEBOOK_KEY_FORCE_HTTPS, DEFAULT_FORCE_HTTPS ) != 0; + return facy.login( user, pass ); } @@ -189,9 +194,6 @@ void FacebookProto::UpdateLoop(void *) if ( !facy.invisible_ ) if ( !facy.buddy_list( ) ) break; - if ( getByte( FACEBOOK_KEY_ENABLE_GROUPCHATS, DEFAULT_ENABLE_GROUPCHATS) ) - if ( !facy.facepiles( ) ) - break; } if ( i == 2 && getByte( FACEBOOK_KEY_EVENT_FEEDS_ENABLE, DEFAULT_EVENT_FEEDS_ENABLE ) ) if ( !facy.feeds( ) ) @@ -202,6 +204,7 @@ void FacebookProto::UpdateLoop(void *) LOG( "***** FacebookProto::UpdateLoop[%d] waking up...", tim ); } + ResetEvent(update_loop_lock_); LOG( "<<<<< Exiting FacebookProto::UpdateLoop[%d]", tim ); } -- cgit v1.2.3