From ac1315e2bb69a7b17ce0a185f73e5a5b2f5f938d Mon Sep 17 00:00:00 2001 From: Trygve Aaberge Date: Mon, 2 Mar 2020 21:54:40 +0100 Subject: Handle reply for broadcast messages sent from wee-slack --- wee_slack.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'wee_slack.py') 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_") -- cgit