diff options
author | Robert Pösel <robyer@seznam.cz> | 2014-07-06 09:00:21 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2014-07-06 09:00:21 +0000 |
commit | 1e11f5fc920b54759b2ec16854d8f9e65662cdec (patch) | |
tree | 51dd2419a0278a57d1d0dfab6697624c8dc2ced8 /protocols/FacebookRM/src/communication.cpp | |
parent | ea1f790f193039c1091d6c091825fe924a30fcb0 (diff) |
Facebook: Fix invisible status (now it's not true-invisible again)
It's not fully tested, should be fixed better later.
git-svn-id: http://svn.miranda-ng.org/main/trunk@9702 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM/src/communication.cpp')
-rw-r--r-- | protocols/FacebookRM/src/communication.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/protocols/FacebookRM/src/communication.cpp b/protocols/FacebookRM/src/communication.cpp index 6f14407941..3faf8da535 100644 --- a/protocols/FacebookRM/src/communication.cpp +++ b/protocols/FacebookRM/src/communication.cpp @@ -516,7 +516,13 @@ std::string facebook_client::choose_action(RequestType request_type, std::string action += "&partition=" + (this->chat_channel_partition_.empty() ? "0" : this->chat_channel_partition_); action += "&clientid=" + this->chat_clientid_; action += "&cb=" + utils::text::rand_string(4, "0123456789abcdefghijklmnopqrstuvwxyz"); - action += "&idle=0&state=active"; + + // FIXME: fix this as I don't know how it works yet (because of quick stable release) + if (!parent->isInvisible()) + action += "&idle=-1&state=active"; + else + action += "&idle=1"; + if (!this->chat_sticky_num_.empty()) action += "&sticky_token=" + this->chat_sticky_num_; |