diff options
author | Trygve Aaberge <trygveaa@gmail.com> | 2017-07-28 21:13:03 +0200 |
---|---|---|
committer | Trygve Aaberge <trygveaa@gmail.com> | 2017-07-28 21:13:03 +0200 |
commit | 4609e4037c079ac0687ede79b2eca677e5ad473b (patch) | |
tree | b63367d2b357b8139892042d5aff350ade238c95 | |
parent | c5023198f4adb3e7dcc0111a6798ccfec115adc4 (diff) | |
download | wee-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.
-rw-r--r-- | wee_slack.py | 2 |
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: |