mirror of https://github.com/zulip/zulip.git
code cleanup: Remove unused parameter in pick_color.
This commit is contained in:
parent
5e194afda3
commit
56da570422
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue