summaryrefslogtreecommitdiff
path: root/protocols/Steam/src/steam_polling.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Steam/src/steam_polling.cpp')
-rw-r--r--protocols/Steam/src/steam_polling.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/protocols/Steam/src/steam_polling.cpp b/protocols/Steam/src/steam_polling.cpp
index 8086db033e..eadade3d99 100644
--- a/protocols/Steam/src/steam_polling.cpp
+++ b/protocols/Steam/src/steam_polling.cpp
@@ -215,6 +215,12 @@ void CSteamProto::PollingThread(void*)
if (!lstrcmpi(error, _T("OK")))
{
+ // Remember last message timestamp
+ node = json_get(root, "timestamp");
+ time_t lastMessageTS = _ttoi64(ptrT(json_as_string(node)));
+ if (lastMessageTS > getDword("LastMessageTS", 0))
+ setDword("LastMessageTS", lastMessageTS);
+
node = json_get(root, "messagelast");
messageId = json_as_int(node);