diff options
author | Robert Pösel <robyer@seznam.cz> | 2015-12-21 10:37:41 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2015-12-21 10:37:41 +0000 |
commit | 56b177cff6de7a1cef5e02d508fce4b53baddba1 (patch) | |
tree | af730f9b425c044cebeaddb78f43a5d325aa9693 /protocols/Steam/src/steam_polling.cpp | |
parent | f738c6cf01e4508b3af9a7fed4be3d98f9b087a5 (diff) |
Steam: Implement loading history/offline messages at login (finally!)
git-svn-id: http://svn.miranda-ng.org/main/trunk@15923 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Steam/src/steam_polling.cpp')
-rw-r--r-- | protocols/Steam/src/steam_polling.cpp | 6 |
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); |