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.

rocketchat_importer: Don't deactivate channels without subscribers.

PieterCK641bbb1001d6
diff --git a/zerver/data_import/rocketchat.py b/zerver/data_import/rocketchat.py
index 9195fdf3489..7b5deae5b17 100644
--- a/zerver/data_import/rocketchat.py
+++ b/zerver/data_import/rocketchat.py
@@ -242,9 +242,6 @@ def convert_stream_subscription_data(
users = stream_members_map[stream["id"]]
else:
users = set()
- # Set the stream without any subscribers
- # as deactivated.
- stream["deactivated"] = True
subscriber_handler.set_info(users=users, stream_id=stream["id"])
diff --git a/zerver/tests/test_rocketchat_importer.py b/zerver/tests/test_rocketchat_importer.py
index 6d75b72fd9c..da63798190e 100644
--- a/zerver/tests/test_rocketchat_importer.py
+++ b/zerver/tests/test_rocketchat_importer.py
@@ -448,7 +448,7 @@ class RocketChatImporter(ZulipTestCase):
)
self.assert_length(subscriber_handler.get_users(stream_id=zerver_stream[6]["id"]), 0)
- self.assertTrue(zerver_stream[6]["deactivated"])
+ self.assertFalse(zerver_stream[6]["deactivated"])
def test_convert_direct_message_group_data(self) -> None:
fixture_dir_name = self.fixture_file_name("", "rocketchat_fixtures")