diff options
Diffstat (limited to 'protocols/Steam/src/steam_history.cpp')
-rw-r--r-- | protocols/Steam/src/steam_history.cpp | 7 |
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); } } |