diff options
author | Robert Pösel <robyer@seznam.cz> | 2015-12-21 10:37:41 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2015-12-21 10:37:41 +0000 |
commit | 56b177cff6de7a1cef5e02d508fce4b53baddba1 (patch) | |
tree | af730f9b425c044cebeaddb78f43a5d325aa9693 /protocols/Steam/src/steam_contacts.cpp | |
parent | f738c6cf01e4508b3af9a7fed4be3d98f9b087a5 (diff) |
Steam: Implement loading history/offline messages at login (finally!)
git-svn-id: http://svn.miranda-ng.org/main/trunk@15923 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Steam/src/steam_contacts.cpp')
-rw-r--r-- | protocols/Steam/src/steam_contacts.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/protocols/Steam/src/steam_contacts.cpp b/protocols/Steam/src/steam_contacts.cpp index 69572b2953..b069052cbc 100644 --- a/protocols/Steam/src/steam_contacts.cpp +++ b/protocols/Steam/src/steam_contacts.cpp @@ -432,15 +432,21 @@ void CSteamProto::OnGotFriendList(const HttpResponse *response) // We need to delete nroot here at the end, because we had references to JSONNode objects stored in friends map json_delete(nroot); + ptrA token(getStringA("TokenSecret")); + if (!steamIds.empty()) { //steamIds.pop_back(); - ptrA token(getStringA("TokenSecret")); PushRequest( new GetUserSummariesRequest(token, steamIds.c_str()), &CSteamProto::OnGotUserSummaries); } + + // Download last messages + PushRequest( + new GetConversationsRequest(token), + &CSteamProto::OnGotConversations); } void CSteamProto::OnGotBlockList(const HttpResponse *response) |