Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
views: Fix message_list.current not updating to undefined on narrow.
Pratik Chanda8c89725fccf3
diff --git a/web/src/views_util.js b/web/src/views_util.jsindex 2f4d39996dd..da57874d2d3 100644--- a/web/src/views_util.js+++ b/web/src/views_util.js@@ -69,11 +69,6 @@ export function show(opts) {return;}- // Hide selected elements in the left sidebar.- opts.highlight_view_in_left_sidebar();- stream_list.handle_message_view_deactivated();- pm_list.handle_message_view_deactivated();-// Hide "middle-column" which has html for rendering// a messages narrow. We hide it and show the view.$("#message_feed_container").hide();@@ -81,6 +76,11 @@ export function show(opts) {message_lists.update_current_message_list(undefined);opts.set_visible(true);+ // Hide selected elements in the left sidebar.+ opts.highlight_view_in_left_sidebar();+ stream_list.handle_message_view_deactivated();+ pm_list.handle_message_view_deactivated();+unread_ui.hide_unread_banner();opts.update_compose();narrow_title.update_narrow_title(narrow_state.filter());