Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
hashchange: Remove duplicate handle_narrow_deactivated call.
Tim Abbottab1546266954
diff --git a/web/src/hashchange.js b/web/src/hashchange.jsindex e028455ad2b..a8f498a42eb 100644--- a/web/src/hashchange.js+++ b/web/src/hashchange.js@@ -11,7 +11,6 @@ import {$t_html} from "./i18n";import * as inbox_ui from "./inbox_ui";import * as inbox_util from "./inbox_util";import * as info_overlay from "./info_overlay";-import * as left_sidebar_navigation_area from "./left_sidebar_navigation_area";import * as message_lists from "./message_lists";import * as message_scroll from "./message_scroll";import * as message_viewport from "./message_viewport";@@ -124,7 +123,6 @@ function show_all_message_view() {const coming_from_inbox = maybe_hide_inbox();const is_actively_scrolling = message_scroll.is_actively_scrolling();narrow.deactivate(!(coming_from_recent_view || coming_from_inbox), is_actively_scrolling);- left_sidebar_navigation_area.handle_narrow_deactivated();// We need to maybe scroll to the selected message// once we have the proper viewport set upsetTimeout(navigate.maybe_scroll_to_selected, 0);diff --git a/web/tests/hashchange.test.js b/web/tests/hashchange.test.jsindex 8ff6ba925d1..8b09af74d4d 100644--- a/web/tests/hashchange.test.js+++ b/web/tests/hashchange.test.js@@ -26,9 +26,6 @@ const settings = mock_esm("../src/settings");const stream_settings_ui = mock_esm("../src/stream_settings_ui");const ui_util = mock_esm("../src/ui_util");const ui_report = mock_esm("../src/ui_report");-mock_esm("../src/left_sidebar_navigation_area", {- handle_narrow_deactivated() {},-});set_global("favicon", {});const browser_history = zrequire("browser_history");