Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
hashchange: Fix duplicate hides of inbox/recent views.
Tim Abbottd505a3c8b742
diff --git a/web/src/hashchange.js b/web/src/hashchange.jsindex 1055290e76b..37f3239a0d6 100644--- a/web/src/hashchange.js+++ b/web/src/hashchange.js@@ -76,13 +76,7 @@ export function set_hash_to_home_view() {}}-function hide_non_message_list_views() {- maybe_hide_inbox();- maybe_hide_recent_view();-}-function show_home_view() {- hide_non_message_list_views();// This function should only be called from the hashchange// handlers, as it does not set the hash to "".//@@ -90,14 +84,17 @@ function show_home_view() {// rendered without a hash.switch (user_settings.web_home_view) {case "recent_topics": {+ maybe_hide_inbox();recent_view_ui.show();break;}case "all_messages": {+ // Hides inbox/recent views internally if open.show_all_message_view();break;}case "inbox": {+ maybe_hide_recent_view();inbox_ui.show();break;}@@ -124,7 +121,6 @@ function do_hashchange_normal(from_reload) {switch (hash[0]) {case "#narrow": {- hide_non_message_list_views();let operators;try {// TODO: Show possible valid URLs to the user.