aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2020-05-16 15:48:30 +0200
committerTrygve Aaberge <trygveaa@gmail.com>2020-05-30 21:13:21 +0200
commite00d0b9e5ae8ca388fc45618a92969926c238761 (patch)
tree9f4e6acbd9effee7b50ea77e7bc9af0c76949425
parent7db608ca556129fda4a358f3c51771bbad4e809f (diff)
downloadwee-slack-e00d0b9e5ae8ca388fc45618a92969926c238761.tar.gz
Fix broadcast messages not being changed in parent channel
-rw-r--r--wee_slack.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/wee_slack.py b/wee_slack.py
index 9be69ff..000c8ea 100644
--- a/wee_slack.py
+++ b/wee_slack.py
@@ -1657,7 +1657,8 @@ class SlackChannelCommon(object):
if text:
m.change_text(text)
- if type(m) == SlackMessage or config.thread_messages_in_channel:
+ if (type(m) == SlackMessage or m.subtype == "thread_broadcast"
+ or config.thread_messages_in_channel):
new_text = self.render(m, force=True)
modify_buffer_line(self.channel_buffer, ts, new_text)
if type(m) == SlackThreadMessage or m.thread_channel is not None: