summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2016-12-11 22:43:13 +0100
committerRobert Pösel <robyer@seznam.cz>2016-12-11 22:43:13 +0100
commite0c07918e5644a6927b2408cc4f35a367f59344a (patch)
tree3a4b86b0b51b9e7d4356d53fca051d438450b306
parent686c461a0f810bb035bd27b26ba165b17c56d02c (diff)
Steam: Attempt to fix not loading contact statuses at login (addresses #646)
-rw-r--r--protocols/Steam/src/steam_contacts.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/protocols/Steam/src/steam_contacts.cpp b/protocols/Steam/src/steam_contacts.cpp
index 39bd619363..6e95c48805 100644
--- a/protocols/Steam/src/steam_contacts.cpp
+++ b/protocols/Steam/src/steam_contacts.cpp
@@ -173,10 +173,10 @@ void CSteamProto::UpdateContact(MCONTACT hContact, JSONNode *data)
// status
// NOTE: this here is wrong info, probably depending on publicity of steam profile, but we don't need this at all, we get status updates by polling
- /*node = json_get(data, "personastate");
- status = SteamToMirandaStatus(json_as_int(node));
+ // NOTE: polling won't always give us info about all contacts (e.g. in case of quick disconnect and reconnect), so we try to use this anyway
+ node = json_get(data, "personastate");
+ WORD status = SteamToMirandaStatus(json_as_int(node));
SetContactStatus(hContact, status);
- */
// client
node = json_get(data, "personastateflags");