mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 22:13:26 +00:00
performance: Avoid dup calls to subscribed_streams().
In stream_sort.sort_groups, we now have the caller pass us in the list of streams, since they are getting them anyway.
This commit is contained in:
@@ -33,8 +33,7 @@ function filter_streams_by_search(streams, search_term) {
|
||||
return filtered_streams;
|
||||
}
|
||||
|
||||
exports.sort_groups = function (search_term) {
|
||||
let streams = stream_data.subscribed_streams();
|
||||
exports.sort_groups = function (streams, search_term) {
|
||||
if (streams.length === 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user