aboutsummaryrefslogtreecommitdiffstats
path: root/wee_slack.py
diff options
context:
space:
mode:
Diffstat (limited to 'wee_slack.py')
-rw-r--r--wee_slack.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/wee_slack.py b/wee_slack.py
index 8a50b87..b552829 100644
--- a/wee_slack.py
+++ b/wee_slack.py
@@ -1251,7 +1251,10 @@ class SlackChannel(object):
self.create_buffer()
return
- if (hasattr(self, "is_member") and self.is_member) or self.is_open or self.unread_count_display:
+ # Only check is_member if is_open is not set, because in some cases
+ # (e.g. group DMs), is_member should be ignored in favor of is_open.
+ is_open = self.is_open if hasattr(self, "is_open") else self.is_member
+ if is_open or self.unread_count_display:
self.create_buffer()
if config.background_load_all_history:
self.get_history(slow_queue=True)