summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM/src/proto.cpp
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2015-02-07 08:43:52 +0000
committerRobert Pösel <robyer@seznam.cz>2015-02-07 08:43:52 +0000
commit9fe7b9187d30041071ceebb4daf69cca38900b09 (patch)
tree7fe2efab376aed3ae7375e1017a2a0f05d52e515 /protocols/FacebookRM/src/proto.cpp
parentbca544e48bda364d28bf3d732e0b578683870ebf (diff)
Facebook: Implement and use activity_ping request
Maybe it's not needed at all, but maybe it will help something :) git-svn-id: http://svn.miranda-ng.org/main/trunk@12037 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM/src/proto.cpp')
-rw-r--r--protocols/FacebookRM/src/proto.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/protocols/FacebookRM/src/proto.cpp b/protocols/FacebookRM/src/proto.cpp
index 561313a2f6..0626e0d677 100644
--- a/protocols/FacebookRM/src/proto.cpp
+++ b/protocols/FacebookRM/src/proto.cpp
@@ -44,6 +44,7 @@ FacebookProto::FacebookProto(const char* proto_name, const TCHAR* username) :
m_signingOut = false;
m_enableChat = DEFAULT_ENABLE_CHATS;
m_idleTS = 0;
+ m_pingTS = 0;
// Load custom locale, if set
ptrA locale(getStringA(FACEBOOK_KEY_LOCALE));
@@ -413,6 +414,9 @@ int FacebookProto::OnIdleChanged(WPARAM wParam, LPARAM lParam)
// User stopped being idle
m_idleTS = 0;
delSetting("IdleTS");
+
+ // Set sending activity_ping at next channel request (because I don't want to create new thread here for such small thing)
+ m_pingTS = 0;
}
return 0;