summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM/src/requests/channel.h
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2017-04-23 13:17:10 +0200
committerRobert Pösel <robyer@seznam.cz>2017-04-23 15:20:16 +0200
commita78ba173862dbc4a3a6565257135e8b8c354cdc4 (patch)
treecdfdbd95ebdbd2d35ebcffdc072345c5db5dc4b7 /protocols/FacebookRM/src/requests/channel.h
parent3aac528057ce49c8497211a4348df5363af17e1e (diff)
Facebook: Fix reporting idle time in away/invisible
Previously Miranda wasn't reporting "idle" at all when invisible, but it was probably represented as "active" by Facebook. Now when user is invisible, it reports idle as number of seconds since switching to invisible (or away). NOTE: Facebook determine last active time of user based not only of this "idle" argument, but also on last time when user was TYPING message.
Diffstat (limited to 'protocols/FacebookRM/src/requests/channel.h')
-rw-r--r--protocols/FacebookRM/src/requests/channel.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/protocols/FacebookRM/src/requests/channel.h b/protocols/FacebookRM/src/requests/channel.h
index 36c9b95ec5..4bce605739 100644
--- a/protocols/FacebookRM/src/requests/channel.h
+++ b/protocols/FacebookRM/src/requests/channel.h
@@ -3,7 +3,7 @@
Facebook plugin for Miranda Instant Messenger
_____________________________________________
-Copyright © 2011-17 Robert Pösel
+Copyright � 2011-17 Robert P�sel
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -59,8 +59,7 @@ public:
*/
int idleSeconds = fc->parent->IdleSeconds();
- if (idleSeconds > 0 && !fc->parent->isInvisible())
- Url << INT_VALUE("idle", idleSeconds);
+ Url << INT_VALUE("idle", idleSeconds); // Browser is sending "idle" always, even if it's "0"
if (!isPing) {
Url << "qp=y"; // TODO: what's this item?