diff options
Diffstat (limited to 'wee_slack.py')
-rw-r--r-- | wee_slack.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/wee_slack.py b/wee_slack.py index 1aaa069..01dceea 100644 --- a/wee_slack.py +++ b/wee_slack.py @@ -1584,7 +1584,9 @@ class SlackChannelCommon(object): prefix = message.sender extra_tags = None - if type(message) == SlackThreadMessage and not thread_channel: + if message.subtype == "thread_broadcast": + extra_tags = [message.subtype] + elif type(message) == SlackThreadMessage and not thread_channel: if config.thread_messages_in_channel: extra_tags = [message.subtype] else: @@ -2249,7 +2251,8 @@ class SlackChannelVisibleMessages(MappingReversible): if ts < self.first_ts_to_display: return False - if (type(self.get(ts)) == SlackThreadMessage and + message = self.get(ts) + if (type(message) == SlackThreadMessage and message.subtype != "thread_broadcast" and not config.thread_messages_in_channel): return False |