From 6d8d0f1919042a189b806ed05d0bd51b6876b354 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 20 Jan 2021 18:18:30 +0300 Subject: fixes #2692 ([Steam] Messages received by Steam client first are not downloaded after logging into Miranda) --- protocols/Steam/src/steam_polling.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'protocols/Steam/src') 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(); -- cgit v1.2.3