diff --git a/web/src/stream_list.js b/web/src/stream_list.js index 53c8c0c8ca..9d3f4b0389 100644 --- a/web/src/stream_list.js +++ b/web/src/stream_list.js @@ -147,14 +147,13 @@ function get_search_term() { export function add_sidebar_row(sub) { create_sidebar_row(sub); - build_stream_list(); - stream_cursor.redraw(); + update_streams_sidebar(); } export function remove_sidebar_row(stream_id) { stream_sidebar.remove_row(stream_id); - build_stream_list(); - stream_cursor.redraw(); + const force_rerender = stream_id === topic_list.active_stream_id(); + update_streams_sidebar(force_rerender); } export function create_initial_sidebar_rows() {