From 3a29b6d50ad050e7a604c4064e55a41022670cfe Mon Sep 17 00:00:00 2001 From: Trygve Aaberge Date: Wed, 10 Jun 2020 16:03:45 +0200 Subject: Fix thread broadcasts not being reprinted in channel --- wee_slack.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'wee_slack.py') 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 -- cgit