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.
This commit is contained in:
Steve Howell 2017-05-14 13:48:14 -07:00 committed by Tim Abbott
parent 76f68e9836
commit 8eb9723283

View File

@ -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) {