diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2014-04-10 08:03:40 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2014-04-10 08:03:40 +0000 |
commit | a7e15910e804e742777b7bb54c83c15a22f342fc (patch) | |
tree | cc96a0fdd893a7d12e7015c4fbde25a4799cc1ac /protocols/Steam/src/steam_account.cpp | |
parent | 69a49660c02bfdbc306e1b22085f8457d680a36a (diff) |
Steam:
- own profile updating
- avatar support
git-svn-id: http://svn.miranda-ng.org/main/trunk@8911 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Steam/src/steam_account.cpp')
-rw-r--r-- | protocols/Steam/src/steam_account.cpp | 38 |
1 files changed, 3 insertions, 35 deletions
diff --git a/protocols/Steam/src/steam_account.cpp b/protocols/Steam/src/steam_account.cpp index 4dd80088a4..f7d86e7c68 100644 --- a/protocols/Steam/src/steam_account.cpp +++ b/protocols/Steam/src/steam_account.cpp @@ -150,7 +150,7 @@ void CSteamProto::LogInThread(void* param) if (loginResult.GetStatus() == HTTP_STATUS_UNAUTHORIZED)
{
delSetting("TokenSecret");
- delSetting("Cookie");
+ //delSetting("Cookie");
}
// set status to offline
@@ -166,40 +166,8 @@ void CSteamProto::LogInThread(void* param) m_iStatus = m_iDesiredStatus;
ProtoBroadcastAck(NULL, ACKTYPE_STATUS, ACKRESULT_SUCCESS, (HANDLE)ID_STATUS_CONNECTING, m_iDesiredStatus);
- // get contact list
- SteamWebApi::FriendListApi::FriendList friendList;
- SteamWebApi::FriendListApi::Load(m_hNetlibUser, token, loginResult.GetSteamId(), &friendList);
-
- if (friendList.IsSuccess())
- {
- CMStringA newContacts;
- for (int i = 0; i < friendList.GetItemCount(); i++)
- {
- const char * steamId = friendList.GetAt(i);
- if (!FindContact(steamId))
- {
- if (newContacts.IsEmpty())
- newContacts.Append(steamId);
- else
- newContacts.AppendFormat(",%s", steamId);
- }
- }
-
- if (!newContacts.IsEmpty())
- {
- SteamWebApi::FriendApi::Summaries summaries;
- SteamWebApi::FriendApi::LoadSummaries(m_hNetlibUser, token, newContacts, &summaries);
-
- if (summaries.IsSuccess())
- {
- for (int i = 0; i < summaries.GetItemCount(); i++)
- {
- const SteamWebApi::FriendApi::Summary *summary = summaries.GetAt(i);
- AddContact(summary);
- }
- }
- }
- }
+ // load contact list
+ LoadContactList();
// start pooling thread
if (m_hPollingThread == NULL && !m_bTerminated)
|