summaryrefslogtreecommitdiff
path: root/protocols/Steam/src/steam_history.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2024-12-12 21:56:51 +0300
committerGeorge Hazan <george.hazan@gmail.com>2024-12-12 21:56:51 +0300
commite9a3b54db4aa8ffb6f97baabc2b676e3d9570bb1 (patch)
treeff76b25d2c458630483fb57fc7383df10e8c0001 /protocols/Steam/src/steam_history.cpp
parentf1a5f02b05bae013e1c7773328b773565031b3c6 (diff)
more code cleaning
Diffstat (limited to 'protocols/Steam/src/steam_history.cpp')
-rw-r--r--protocols/Steam/src/steam_history.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/protocols/Steam/src/steam_history.cpp b/protocols/Steam/src/steam_history.cpp
index a57f59a9e3..c56105988e 100644
--- a/protocols/Steam/src/steam_history.cpp
+++ b/protocols/Steam/src/steam_history.cpp
@@ -20,11 +20,8 @@ void CSteamProto::OnGotConversations(const JSONNode &root, void *)
continue;
time_t lastMessageTS = _wtoi64(session["last_message"].as_mstring());
- if (lastMessageTS > storedMessageTS) {
- ptrA token(getStringA("TokenSecret"));
- ptrA steamId(getStringA(DBKEY_STEAM_ID));
- SendRequest(new GetHistoryMessagesRequest(token, steamId, who, storedMessageTS), &CSteamProto::OnGotHistoryMessages, (void*)hContact);
- }
+ if (lastMessageTS > storedMessageTS)
+ SendRequest(new GetHistoryMessagesRequest(m_szAccessToken, m_iSteamId, who, storedMessageTS), &CSteamProto::OnGotHistoryMessages, (void*)hContact);
}
}