aboutsummaryrefslogtreecommitdiffstats
path: root/wee_slack.py
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2017-07-28 21:13:03 +0200
committerTrygve Aaberge <trygveaa@gmail.com>2017-07-28 21:13:03 +0200
commit4609e4037c079ac0687ede79b2eca677e5ad473b (patch)
treeb63367d2b357b8139892042d5aff350ade238c95 /wee_slack.py
parentc5023198f4adb3e7dcc0111a6798ccfec115adc4 (diff)
downloadwee-slack-4609e4037c079ac0687ede79b2eca677e5ad473b.tar.gz
Set correct number of unread messages in hotlist
While the commit 6718e2f fixed buffers not appearing in the hotlist, after it the number of new messages for each buffer was gone. This makes the number of messages for each buffer shown again.
Diffstat (limited to 'wee_slack.py')
-rw-r--r--wee_slack.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/wee_slack.py b/wee_slack.py
index b974fea..6f9aaf8 100644
--- a/wee_slack.py
+++ b/wee_slack.py
@@ -1141,7 +1141,7 @@ class SlackChannel(object):
def set_unread_count_display(self, count):
self.unread_count_display = count
- if (self.unread_count_display > 0):
+ for c in range(self.unread_count_display):
if self.type == "im":
w.buffer_set(self.channel_buffer, "hotlist", "2")
else: