aboutsummaryrefslogtreecommitdiffstats
path: root/wee_slack.py
diff options
context:
space:
mode:
Diffstat (limited to 'wee_slack.py')
-rw-r--r--wee_slack.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/wee_slack.py b/wee_slack.py
index 7198ba3..e4edc2c 100644
--- a/wee_slack.py
+++ b/wee_slack.py
@@ -295,6 +295,8 @@ class SlackServer(object):
for item in data["ims"]:
if "last_read" not in item:
item["last_read"] = 0
+ if item["unread_count"] > 0:
+ item["is_open"] = True
name = self.users.find(item["user"]).name
self.add_channel(DmChannel(self, name, item["id"], item["is_open"], item["last_read"]))
for item in data['self']['prefs']['muted_channels'].split(','):