mirror of
https://github.com/zulip/zulip.git
synced 2025-11-17 12:21:58 +00:00
slack import: Don't try to import pinned/unpinned items.
There isn't a corresponding Zulip concept, and they don't have a "text" attribute, so there's no message content to import.
This commit is contained in:
@@ -667,6 +667,10 @@ def channel_message_to_zerver_message(realm_id: int, users: List[ZerverFieldsT],
|
|||||||
# These are Sometimes produced by slack
|
# These are Sometimes produced by slack
|
||||||
continue
|
continue
|
||||||
if message.get('subtype') in [
|
if message.get('subtype') in [
|
||||||
|
# Zulip doesn't have a pinned_item concept
|
||||||
|
"pinned_item",
|
||||||
|
"unpinned_item",
|
||||||
|
# Slack's channel join/leave notices are spammy
|
||||||
"channel_join",
|
"channel_join",
|
||||||
"channel_leave",
|
"channel_leave",
|
||||||
"channel_name"
|
"channel_name"
|
||||||
|
|||||||
Reference in New Issue
Block a user