From e0c07918e5644a6927b2408cc4f35a367f59344a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Sun, 11 Dec 2016 22:43:13 +0100 Subject: Steam: Attempt to fix not loading contact statuses at login (addresses #646) --- protocols/Steam/src/steam_contacts.cpp | 6 +++--- 1 file 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"); -- cgit v1.2.3