summaryrefslogtreecommitdiff
path: root/FacebookRM/communication.cpp
diff options
context:
space:
mode:
authorwatcherhd <watcherhd@e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb>2012-03-15 16:43:42 +0000
committerwatcherhd <watcherhd@e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb>2012-03-15 16:43:42 +0000
commitde0c391964f20214bedcffa954c162360675d3b1 (patch)
tree09e0b8222a546665115ea358de5de3ad210984fd /FacebookRM/communication.cpp
parent9ae77d567708f16deb9e9cb1c2761c332a618db8 (diff)
FacebookRM: version bump
# For running plugin is required Miranda 0.9.43 or newer # Plugin is compiled with VS2005 (Fb x86) and a VS2010 (Fb x64) + Added 2 types of newsfeeds: Photos and Links * Reworked options ! Fixed setting to notify different type of newsfeeds ! Fixed and improved parsing newsfeeds ! Fixed getting groupchat messages which contains % ! Fixed not working login ! Improved deleting of contacts + Support for Miranda's EV_PROTO_ONCONTACTDELETED events + Added missing GUID for x64 version and updated user-agent ! Some other minor fixes or improvements ! Fixed item 'Visit Profile' when protocol menus are moved to Main menu * Updated language pack file (for translators) - Disabled option for closing message windows on website (temporary doesnt work) git-svn-id: http://miranda-plugins.googlecode.com/svn/trunk@279 e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb
Diffstat (limited to 'FacebookRM/communication.cpp')
-rw-r--r--FacebookRM/communication.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/FacebookRM/communication.cpp b/FacebookRM/communication.cpp
index e819f82..a7230fc 100644
--- a/FacebookRM/communication.cpp
+++ b/FacebookRM/communication.cpp
@@ -406,13 +406,15 @@ std::string facebook_client::choose_action( int request_type, std::string* data
case FACEBOOK_REQUEST_RECONNECT:
{
- std::string action = "/ajax/presence/reconnect.php?__a=1&reason=%s&iframe_loaded=false&post_form_id=%s";
+ std::string action = "/ajax/presence/reconnect.php?__a=1&reason=%s&fb_dtsg=%s&post_form_id=%s&__user=%s";
if (this->chat_reconnect_reason_.empty())
- this->chat_reconnect_reason_ = "0";
+ this->chat_reconnect_reason_ = "0"; // 6?
utils::text::replace_first( &action, "%s", this->chat_reconnect_reason_ );
+ utils::text::replace_first( &action, "%s", this->dtsg_ );
utils::text::replace_first( &action, "%s", this->post_form_id_ );
+ utils::text::replace_first( &action, "%s", this->self_.user_id );
return action;
}
@@ -851,9 +853,6 @@ bool facebook_client::home( )
ForkThread( &FacebookProto::ProcessNotifications, this->parent, NULL );
}
- // TODO RM: if enabled groupchats support
-
-
if (DBGetContactSettingByte(NULL, parent->m_szModuleName, FACEBOOK_KEY_ENABLE_GROUPCHATS, DEFAULT_ENABLE_GROUPCHATS)) {
// Get group chats
std::string favorites = utils::text::source_get_value( &resp.data, 2, "<div id=\"leftCol\"", "<div id=\"contentCol\"" );
@@ -1127,6 +1126,9 @@ bool facebook_client::channel( )
this->chat_reconnect_reason_ = utils::text::source_get_value2( &resp.data, "\"reason\":", ",}" );
parent->Log(" Reconnect reason: %s", this->chat_reconnect_reason_.c_str());
+ this->chat_sequence_num_ = utils::text::source_get_value2( &resp.data, "\"seq\":", ",}" );
+ parent->Log(" Got self sequence number: %s", this->chat_sequence_num_.c_str());
+
return this->reconnect( );
} else {
// Something has been received, throw to new thread to process