From ac8bed8f05473bf773b9729d5acef4b49dde3682 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Tue, 22 Dec 2015 19:00:27 +0000 Subject: Steam: Various fixes to loading offline messages git-svn-id: http://svn.miranda-ng.org/main/trunk@15933 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Steam/src/steam_polling.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'protocols/Steam/src/steam_polling.cpp') diff --git a/protocols/Steam/src/steam_polling.cpp b/protocols/Steam/src/steam_polling.cpp index eadade3d99..bbc05e1451 100644 --- a/protocols/Steam/src/steam_polling.cpp +++ b/protocols/Steam/src/steam_polling.cpp @@ -216,10 +216,10 @@ 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, "utc_timestamp"); + time_t timestamp = _ttoi64(ptrT(json_as_string(node))); + if (timestamp > getDword("LastMessageTS", 0)) + setDword("LastMessageTS", timestamp); node = json_get(root, "messagelast"); messageId = json_as_int(node); -- cgit v1.2.3