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.

code cleanup: Remove unused parameter in pick_color.

Steve Howell56da570422e1
diff --git a/zerver/lib/actions.py b/zerver/lib/actions.py
index 05cd05cbfd0..6c8ddad37de 100644
--- a/zerver/lib/actions.py
+++ b/zerver/lib/actions.py
@@ -3596,7 +3596,7 @@ def internal_send_huddle_message(
return message_ids[0]
-def pick_color(user_profile: UserProfile, used_colors: Set[str]) -> str:
+def pick_color(used_colors: Set[str]) -> str:
# These colors are shared with the palette in stream_settings_ui.js.
available_colors = [s for s in STREAM_ASSIGNMENT_COLORS if s not in used_colors]
@@ -3889,7 +3889,7 @@ def bulk_add_subscriptions(
if stream.name in color_map:
color = color_map[stream.name]
else:
- color = pick_color(user_profile, used_colors)
+ color = pick_color(used_colors)
used_colors.add(color)
sub = Subscription(