mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 14:03:30 +00:00
refactor: Pass stream_ids to is_subscriber_subset.
After this change all peer_data functions consistently use stream_id rather than some "sub" object whose data type is complicated by all sort of fields that don't really concern how we track subscribers.
This commit is contained in:
@@ -981,7 +981,7 @@ exports.warn_if_private_stream_is_linked = function (linked_stream) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (peer_data.is_subscriber_subset(compose_stream, linked_stream)) {
|
||||
if (peer_data.is_subscriber_subset(compose_stream.stream_id, linked_stream.stream_id)) {
|
||||
// Don't warn if subscribers list of current compose_stream is
|
||||
// a subset of linked_stream's subscribers list, because
|
||||
// everyone will be subscribed to the linked stream and so
|
||||
|
||||
Reference in New Issue
Block a user