From 8eb9723283fc0080da696c95467e79ee687cd380 Mon Sep 17 00:00:00 2001 From: Steve Howell Date: Sun, 14 May 2017 13:48:14 -0700 Subject: [PATCH] stream_list: Call update_streams_sidebar() on renames. If you rename a stream, call update_streams_sidebar() to make sure we redraw the active stream correctly. --- static/js/stream_list.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/stream_list.js b/static/js/stream_list.js index 08ad43b310..2bfb2a5303 100644 --- a/static/js/stream_list.js +++ b/static/js/stream_list.js @@ -333,7 +333,7 @@ exports.update_dom_with_unread_counts = function (counts) { exports.rename_stream = function (sub) { // The sub object is expected to already have the updated name build_stream_sidebar_row(sub); - exports.build_stream_list(); // big hammer + exports.update_streams_sidebar(); // big hammer }; exports.refresh_pinned_or_unpinned_stream = function (sub) {