aboutsummaryrefslogtreecommitdiffstats
path: root/wee_slack.py
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2020-03-02 21:54:40 +0100
committerTrygve Aaberge <trygveaa@gmail.com>2020-03-02 21:54:40 +0100
commitac1315e2bb69a7b17ce0a185f73e5a5b2f5f938d (patch)
treef1550fafc7f651767f8ac1e598af5d52586fd4c1 /wee_slack.py
parent3e2d6ce4d061335d1bd671538338c2d4d712e4cc (diff)
downloadwee-slack-ac1315e2bb69a7b17ce0a185f73e5a5b2f5f938d.tar.gz
Handle reply for broadcast messages sent from wee-slack
Diffstat (limited to 'wee_slack.py')
-rw-r--r--wee_slack.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/wee_slack.py b/wee_slack.py
index 2900c24..74d3631 100644
--- a/wee_slack.py
+++ b/wee_slack.py
@@ -2888,7 +2888,10 @@ def process_message(message_json, eventrouter, team, channel, metadata, history_
return
if "thread_ts" in message_json and "reply_count" not in message_json and "subtype" not in message_json:
- message_json["subtype"] = "thread_message"
+ if message_json.get("reply_broadcast"):
+ message_json["subtype"] = "thread_broadcast"
+ else:
+ message_json["subtype"] = "thread_message"
subtype = message_json.get("subtype")
subtype_functions = get_functions_with_prefix("subprocess_")