aboutsummaryrefslogtreecommitdiffstats
path: root/wee_slack.py
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2020-06-10 16:03:45 +0200
committerTrygve Aaberge <trygveaa@gmail.com>2020-06-10 16:16:48 +0200
commit3a29b6d50ad050e7a604c4064e55a41022670cfe (patch)
tree0490c17dc81a3a87d578b53ba63962a94268abfc /wee_slack.py
parent0f5f62769f01f18fa2e8c82fbc5cd26bdcf06f5a (diff)
downloadwee-slack-3a29b6d50ad050e7a604c4064e55a41022670cfe.tar.gz
Fix thread broadcasts not being reprinted in channel
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