diff options
author | Robert Pösel <robyer@seznam.cz> | 2012-11-03 19:03:28 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2012-11-03 19:03:28 +0000 |
commit | f1c8069fba15a042ba2824ee6dc48a891f8ccd2d (patch) | |
tree | d2d36917a46892184facda5bd59efecf8222ed59 /protocols/FacebookRM/src/connection.cpp | |
parent | 31b191bc8ddb639e488ab8306f71ac1dbabf16f0 (diff) |
Facebook:
- use homepage from mobile facebook = much faster (and smaller ;)) logging in
- always getting unread messages (not "experimental" anymore)
git-svn-id: http://svn.miranda-ng.org/main/trunk@2168 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM/src/connection.cpp')
-rw-r--r-- | protocols/FacebookRM/src/connection.cpp | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/protocols/FacebookRM/src/connection.cpp b/protocols/FacebookRM/src/connection.cpp index d041e0344f..4abded5872 100644 --- a/protocols/FacebookRM/src/connection.cpp +++ b/protocols/FacebookRM/src/connection.cpp @@ -82,20 +82,19 @@ void FacebookProto::ChangeStatus(void*) ResetEvent(update_loop_lock_);
- if ( NegotiateConnection( ))
- {
- facy.last_feeds_update_ = ::time( NULL );
-
- facy.home();
+ if (NegotiateConnection() && facy.home())
+ {
facy.reconnect();
-
facy.load_friends();
// Process Friends requests
ForkThread( &FacebookProto::ProcessFriendRequests, this, NULL );
- if (getByte(FACEBOOK_KEY_PARSE_MESSAGES, DEFAULT_PARSE_MESSAGES))
- ForkThread( &FacebookProto::ProcessUnreadMessages, this );
+ // Get unread messages
+ ForkThread( &FacebookProto::ProcessUnreadMessages, this );
+
+ // Get notifications
+ ForkThread( &FacebookProto::ProcessNotifications, this );
setDword( "LogonTS", (DWORD)time(NULL));
ForkThread( &FacebookProto::UpdateLoop, this );
@@ -180,6 +179,9 @@ bool FacebookProto::NegotiateConnection( ) DBFreeVariant(&dbv);
}
+ // Refresh last time of feeds update
+ facy.last_feeds_update_ = ::time(NULL);
+
// Get info about secured connection
facy.https_ = DBGetContactSettingByte(NULL, m_szModuleName, FACEBOOK_KEY_FORCE_HTTPS, DEFAULT_FORCE_HTTPS ) != 0;
|