diff options
author | George Hazan <ghazan@miranda.im> | 2021-01-20 18:18:30 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2021-01-20 18:18:30 +0300 |
commit | 6d8d0f1919042a189b806ed05d0bd51b6876b354 (patch) | |
tree | 05fe2ee080790ec7683c88967ca63938f4adfb9e /protocols/Steam/src | |
parent | e0ba5c4035a76282eb9a10bfc2c2793392354eb3 (diff) |
fixes #2692 ([Steam] Messages received by Steam client first are not downloaded after logging into Miranda)
Diffstat (limited to 'protocols/Steam/src')
-rw-r--r-- | protocols/Steam/src/steam_polling.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/protocols/Steam/src/steam_polling.cpp b/protocols/Steam/src/steam_polling.cpp index e2b5bdd3e3..e98341b1fd 100644 --- a/protocols/Steam/src/steam_polling.cpp +++ b/protocols/Steam/src/steam_polling.cpp @@ -15,9 +15,6 @@ void CSteamProto::ParsePollData(const JSONNode &data) hContact = GetContact(steamId.c_str()); if (hContact == 0) continue; - - if (timestamp > getDword(hContact, DB_KEY_LASTMSGTS)) - setDword(hContact, DB_KEY_LASTMSGTS, timestamp); } else hContact = 0; @@ -55,6 +52,9 @@ void CSteamProto::ParsePollData(const JSONNode &data) if (type == "my_saytext" || type =="my_emote") { json_string text = item["text"].as_string(); + if (timestamp > getDword(hContact, DB_KEY_LASTMSGTS)) + setDword(hContact, DB_KEY_LASTMSGTS, timestamp); + PROTORECVEVENT recv = { 0 }; recv.timestamp = timestamp; recv.szMessage = (char*)text.c_str(); |