slack: Rename default_channels to slack_default_channels.

This commit is contained in:
Vishnu KS 2019-08-13 19:37:36 +05:30 committed by Tim Abbott
parent b919514f7f
commit 99d34fd11d
1 changed files with 2 additions and 5 deletions

View File

@ -380,11 +380,8 @@ def channels_to_zerver_stream(slack_data_dir: str, realm_id: int,
description, stream_id, channel["is_archived"], invite_only)
realm["zerver_stream"].append(stream)
# construct defaultstream object
# slack has the default channel 'general' and 'random'
# where every user is subscribed
default_channels = ['general', 'random'] # Slack specific
if channel['name'] in default_channels:
slack_default_channels = ['general', 'random']
if channel['name'] in slack_default_channels:
defaultstream = build_defaultstream(realm_id, stream_id,
defaultstream_id)
realm["zerver_defaultstream"].append(defaultstream)