mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 15:03:34 +00:00
refactor: Use subs_to_add in return value.
The subs_to_add is directly related to a var called new_subs, which I hope to eliminate soon.
This commit is contained in:
@@ -2926,7 +2926,7 @@ def bulk_add_subscriptions(streams: Iterable[Stream],
|
||||
all_subscribers_by_stream=all_subscribers_by_stream,
|
||||
)
|
||||
|
||||
return ([(user_profile, stream) for (user_profile, recipient_id, stream) in new_subs] +
|
||||
return ([(sub.user_profile, stream) for (sub, stream) in subs_to_add] +
|
||||
[(sub.user_profile, stream) for (sub, stream) in subs_to_activate],
|
||||
already_subscribed)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user