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:
Tim Abbott
2018-04-18 11:36:31 -07:00
parent acd3a364e1
commit 7dfa0edfa6

View File

@@ -667,6 +667,10 @@ def channel_message_to_zerver_message(realm_id: int, users: List[ZerverFieldsT],
# These are Sometimes produced by slack
continue
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_leave",
"channel_name"