summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2021-01-20 18:18:30 +0300
committerGeorge Hazan <ghazan@miranda.im>2021-01-20 18:18:30 +0300
commit6d8d0f1919042a189b806ed05d0bd51b6876b354 (patch)
tree05fe2ee080790ec7683c88967ca63938f4adfb9e
parente0ba5c4035a76282eb9a10bfc2c2793392354eb3 (diff)
fixes #2692 ([Steam] Messages received by Steam client first are not downloaded after logging into Miranda)
-rw-r--r--plugins/Dbx_sqlite/src/version.h2
-rw-r--r--protocols/Steam/src/steam_polling.cpp6
2 files changed, 4 insertions, 4 deletions
diff --git a/plugins/Dbx_sqlite/src/version.h b/plugins/Dbx_sqlite/src/version.h
index c62edefb90..e4eca01863 100644
--- a/plugins/Dbx_sqlite/src/version.h
+++ b/plugins/Dbx_sqlite/src/version.h
@@ -1,7 +1,7 @@
#define __MAJOR_VERSION 0
#define __MINOR_VERSION 95
#define __RELEASE_NUM 13
-#define __BUILD_NUM 1
+#define __BUILD_NUM 2
#include <stdver.h>
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();