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, 3 insertions, 2 deletions
diff --git a/wee_slack.py b/wee_slack.py
index a916ab8..f066145 100644
--- a/wee_slack.py
+++ b/wee_slack.py
@@ -2171,8 +2171,9 @@ class SlackChannelVisibleMessages(MappingReversible):
if ts < self.first_ts_to_display:
return False
- if (not config.thread_messages_in_channel and
- isinstance(self.get(ts), SlackThreadMessage)):
+ message = self.get(ts)
+ if (message and message.subtype == "thread_message" and
+ not config.thread_messages_in_channel):
return False
return True