aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGianluca Arbezzano <gianarb92@gmail.com>2019-11-07 14:11:39 +0100
committerAidan Epstein <aidan@jmad.org>2020-02-18 14:48:34 -0800
commit4ffb44d01da6bc56f3f7a46de6cb7ed0f0f22a05 (patch)
tree2a92461005ba09117148fd80185106f35900a2aa
parent2350a89bbfef7f1a528405e2feaed833c8baa546 (diff)
downloadwee-slack-4ffb44d01da6bc56f3f7a46de6cb7ed0f0f22a05.tar.gz
Add support for the call block
This commit adds the support for call block. It fixes #726 Signed-off-by: Gianluca Arbezzano <gianarb92@gmail.com>
-rw-r--r--wee_slack.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/wee_slack.py b/wee_slack.py
index fd200b6..c6d42ae 100644
--- a/wee_slack.py
+++ b/wee_slack.py
@@ -3383,6 +3383,8 @@ def unfurl_blocks(message_json):
if "fields" in block: block_text += unfurl_texts(block["fields"])
elif block["type"] == "actions":
block_text.append("|".join(i["text"]["text"] for i in block["elements"]))
+ elif block["type"] == "call":
+ block_text.append(". Join via ").append(block["call"]["v1"]["join_url"])
elif block["type"] == "divider":
block_text.append("\n")
elif block["type"] == "context":