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: Add some unhandled block types.

Mateusz Mandera720b581712f7
diff --git a/zerver/data_import/slack_message_conversion.py b/zerver/data_import/slack_message_conversion.py
index 6612fb4dace..069685b6c5b 100644
--- a/zerver/data_import/slack_message_conversion.py
+++ b/zerver/data_import/slack_message_conversion.py
@@ -261,12 +261,15 @@ def render_block(block: WildValue) -> str:
"actions",
"context",
"call",
+ "contact_card",
"condition",
"divider",
+ "file",
"header",
"image",
"input",
"section",
+ "table",
"rich_text",
]
)
@@ -280,6 +283,9 @@ def render_block(block: WildValue) -> str:
# probably it would be worth replacing with a string indicating a Slack
# call occurred.
"call",
+ "contact_card",
+ "file",
+ "table",
# The "actions" block is used to format literal in-message clickable
# buttons and similar elements, which Zulip currently doesn't support.
# https://docs.slack.dev/reference/block-kit/blocks/actions-block