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: Treat users with "bot" roles as bots when importing.

Alex Vandiver724de9cd49ed
diff --git a/zerver/data_import/rocketchat.py b/zerver/data_import/rocketchat.py
index 7c5b655b0f8..986edd2ec33 100644
--- a/zerver/data_import/rocketchat.py
+++ b/zerver/data_import/rocketchat.py
@@ -104,6 +104,8 @@ def process_users(
realm_owners.append(id)
elif "guest" in user_dict["roles"]:
role = UserProfile.ROLE_GUEST
+ elif "bot" in user_dict["roles"]:
+ is_bot = True
if is_bot:
bots.append(id)