mirror of
https://github.com/zulip/zulip.git
synced 2025-11-12 18:06:44 +00:00
list_render: Add replace_list_data().
The data() function was used in only one place, and it can be replaced now with two simple lines of code.
This commit is contained in:
@@ -188,8 +188,7 @@ exports.update_subscribers_list = function (sub) {
|
||||
// stream is open.
|
||||
if (subscribers_list) {
|
||||
stream_edit.sort_but_pin_current_user_on_top(users);
|
||||
subscribers_list.data(users);
|
||||
subscribers_list.clean_redraw();
|
||||
subscribers_list.replace_list_data(users);
|
||||
}
|
||||
$(".subscriber_list_settings_container").show();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user