diff options
author | Robert Pösel <robyer@seznam.cz> | 2015-12-22 19:00:27 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2015-12-22 19:00:27 +0000 |
commit | ac8bed8f05473bf773b9729d5acef4b49dde3682 (patch) | |
tree | e4acef721054ef0fa89676061147e2bba9b6baf1 /protocols/Steam/src/steam_login.cpp | |
parent | f5e9122078e308f4b9dfa70b4f160056fae95c19 (diff) |
Steam: Various fixes to loading offline messages
git-svn-id: http://svn.miranda-ng.org/main/trunk@15933 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Steam/src/steam_login.cpp')
-rw-r--r-- | protocols/Steam/src/steam_login.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/protocols/Steam/src/steam_login.cpp b/protocols/Steam/src/steam_login.cpp index f2d06b208d..8a4e5c8255 100644 --- a/protocols/Steam/src/steam_login.cpp +++ b/protocols/Steam/src/steam_login.cpp @@ -354,6 +354,12 @@ void CSteamProto::OnLoggedOn(const HttpResponse *response) node = json_get(root, "message"); setDword("MessageID", json_as_int(node)); + + if (m_lastMessageTS <= 0) { + node = json_get(root, "utc_timestamp"); + time_t timestamp = _ttoi64(ptrT(json_as_string(node))); + setDword("LastMessageTS", timestamp); + } // load contact list ptrA token(getStringA("TokenSecret")); |