From 56b177cff6de7a1cef5e02d508fce4b53baddba1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Mon, 21 Dec 2015 10:37:41 +0000 Subject: 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 --- protocols/Steam/src/steam_contacts.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'protocols/Steam/src/steam_contacts.cpp') 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) -- cgit v1.2.3