aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2020-08-24 16:00:43 +0200
committerTrygve Aaberge <trygveaa@gmail.com>2020-08-24 16:00:43 +0200
commit5971efebe420f30a6fff04632120d18abec4e7a0 (patch)
tree12d61a3d93f5096fe20d3ee3d2d7e4c156a82b91
parentc561fb7de35175fa5db58aef3ce227ba3cf9eedb (diff)
downloadwee-slack-5971efebe420f30a6fff04632120d18abec4e7a0.tar.gz
Fix thread broadcasts not appearing in channels
This was broken in commit d427501.
-rw-r--r--wee_slack.py7
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