diff options
author | Trygve Aaberge <trygveaa@gmail.com> | 2020-08-24 16:14:04 +0200 |
---|---|---|
committer | Trygve Aaberge <trygveaa@gmail.com> | 2020-08-24 16:14:04 +0200 |
commit | 9fdbd5ef6dd08330f9c6040caaf0199ab5abc5d3 (patch) | |
tree | 850fa8f6ebefdb5b622490abc4685b0bc65d932c /wee_slack.py | |
parent | 5971efebe420f30a6fff04632120d18abec4e7a0 (diff) | |
download | wee-slack-9fdbd5ef6dd08330f9c6040caaf0199ab5abc5d3.tar.gz |
Fix thread broadcasts sent from wee-slack not becoming broadcasts
This was broken in commit d427501.
Diffstat (limited to 'wee_slack.py')
-rw-r--r-- | wee_slack.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/wee_slack.py b/wee_slack.py index 01dceea..8c06fcb 100644 --- a/wee_slack.py +++ b/wee_slack.py @@ -2902,7 +2902,8 @@ class SlackMessage(object): class SlackThreadMessage(SlackMessage): def __init__(self, parent_channel, thread_ts, message_json, *args): - subtype = message_json.get('subtype', 'thread_message') + subtype = message_json.get('subtype', + 'thread_broadcast' if message_json.get("reply_broadcast") else 'thread_message') super(SlackThreadMessage, self).__init__(subtype, message_json, *args) self.parent_channel = parent_channel self.thread_ts = thread_ts |