Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

slack_converter: Move "input" type to `unhandled_types`.

PieterCK48814f503946
diff --git a/zerver/data_import/slack_message_conversion.py b/zerver/data_import/slack_message_conversion.py
index a0467c75698..1907f135322 100644
--- a/zerver/data_import/slack_message_conversion.py
+++ b/zerver/data_import/slack_message_conversion.py
@@ -297,6 +297,7 @@ def render_block(block: WildValue) -> str:
# overrides it.
# https://docs.slack.dev/reference/block-kit/blocks/rich-text-block/
"rich_text",
+ "input",
]
if block_type in unhandled_types:
return ""
@@ -322,9 +323,6 @@ def render_block(block: WildValue) -> str:
if "title" in block:
alt_text = block["title"].tame(check_text_block(plain_text_only=True))["text"]
return f"[{alt_text}]({image_url})"
- elif block_type == "input":
- # Unhandled
- pass
elif block_type == "section":
pieces = []
if "text" in block: