diff options
Diffstat (limited to 'protocols/Slack/src/slack_contacts.cpp')
-rw-r--r-- | protocols/Slack/src/slack_contacts.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/protocols/Slack/src/slack_contacts.cpp b/protocols/Slack/src/slack_contacts.cpp index 5054e6003c..82798cb9ca 100644 --- a/protocols/Slack/src/slack_contacts.cpp +++ b/protocols/Slack/src/slack_contacts.cpp @@ -127,6 +127,9 @@ void CSlackProto::OnGotUserList(JSONNode &root, void*) if (!status.IsEmpty()) setWString(hContact, "StatusMsg", status); + json_string presence = user["presence"].as_string(); + SetContactStatus(hContact, SlackToMirandaStatus(presence.c_str())); + JSONNode profile = root["profile"].as_node(); OnGotUserProfile(hContact, profile); } |