From 9fe7b9187d30041071ceebb4daf69cca38900b09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Sat, 7 Feb 2015 08:43:52 +0000 Subject: 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 --- protocols/FacebookRM/src/proto.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'protocols/FacebookRM/src/proto.cpp') 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; -- cgit v1.2.3