summaryrefslogtreecommitdiff
path: root/protocols/Slack/src/slack_contacts.cpp
diff options
context:
space:
mode:
authoraunsane <aunsane@gmail.com>2017-03-16 00:52:31 +0300
committeraunsane <aunsane@gmail.com>2017-03-16 00:52:31 +0300
commit69c00c5b8999f66f27475342c78cc4488959e8bb (patch)
tree89046c469bd8337e2c191d348d47bceb69a49ee0 /protocols/Slack/src/slack_contacts.cpp
parentc84b27ebb4eaa5327c601f0b504249bf061ef3b5 (diff)
Slack: some improvements
Diffstat (limited to 'protocols/Slack/src/slack_contacts.cpp')
-rw-r--r--protocols/Slack/src/slack_contacts.cpp3
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);
}