From bb9b2988349e923f78ec48badd642ac744b2a9c1 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 21 Jan 2021 18:55:56 +0300 Subject: Steam: LastMessageTS should be also advanced for incoming messages --- protocols/Steam/src/steam_polling.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'protocols/Steam/src') 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(); -- cgit v1.2.3