summaryrefslogtreecommitdiff
path: root/protocols/Steam/src/steam_messages.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2021-01-04 21:27:45 +0300
committerGeorge Hazan <ghazan@miranda.im>2021-01-04 21:27:45 +0300
commita9a97c244bf5cea6d1e7a2e48b91f08558829387 (patch)
tree2dc7edeaf2ceae48dec7b89efb39ebb59b1abef3 /protocols/Steam/src/steam_messages.cpp
parent8adfc2b2b5fa4aaab9fee1e8b5a38ad44da94306 (diff)
Steam:
- global LastMessageTS field removed because it's senseless, now it's stored for each contact separately; - options code cleaning; - project file fix; - version bump
Diffstat (limited to 'protocols/Steam/src/steam_messages.cpp')
-rw-r--r--protocols/Steam/src/steam_messages.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/Steam/src/steam_messages.cpp b/protocols/Steam/src/steam_messages.cpp
index 27f4a08fb4..c4d9329761 100644
--- a/protocols/Steam/src/steam_messages.cpp
+++ b/protocols/Steam/src/steam_messages.cpp
@@ -38,8 +38,8 @@ void CSteamProto::OnMessageSent(const HttpResponse &response, void *arg)
const JSONNode &time = root["utc_timestamp"];
if (time) {
timestamp = atol(node.as_string().c_str());
- if (timestamp > getDword("LastMessageTS", 0))
- setDword("LastMessageTS", timestamp);
+ if (timestamp > getDword(param->hContact, DB_KEY_LASTMSGTS))
+ setDword(param->hContact, DB_KEY_LASTMSGTS, timestamp);
}
}