diff options
author | George Hazan <ghazan@miranda.im> | 2021-01-21 18:55:56 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2021-01-21 18:55:56 +0300 |
commit | bb9b2988349e923f78ec48badd642ac744b2a9c1 (patch) | |
tree | 07ae8666e3cd14d5b8b11032d5e45d45fb9bd763 /protocols/Steam/src | |
parent | 5f81d39808b16e87386e6cfa1777821aee727c5f (diff) |
Steam: LastMessageTS should be also advanced for incoming messages
Diffstat (limited to 'protocols/Steam/src')
-rw-r--r-- | protocols/Steam/src/steam_polling.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/protocols/Steam/src/steam_polling.cpp b/protocols/Steam/src/steam_polling.cpp index 4e921adf2c..9b56e4787e 100644 --- a/protocols/Steam/src/steam_polling.cpp +++ b/protocols/Steam/src/steam_polling.cpp @@ -66,6 +66,9 @@ void CSteamProto::ParsePollData(const JSONNode &data) if (type == "saytext" || type == "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(); |