Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
message_lists: Avoid setting message_lists.current in recent topics.
Tim Abbott50f6d7ff73c1
diff --git a/static/js/message_lists.js b/static/js/message_lists.jsindex dc1b98e2087..7ade9aad716 100644--- a/static/js/message_lists.js+++ b/static/js/message_lists.js@@ -1,5 +1,6 @@import {Filter} from "./filter";import * as message_list from "./message_list";+import * as recent_topics_util from "./recent_topics_util";export let home;export let current;@@ -10,7 +11,7 @@ export function set_current(msg_list) {export function all_rendered_message_lists() {const rendered_message_lists = [home];- if (current !== home) {+ if (current !== home && !recent_topics_util.is_visible()) {rendered_message_lists.push(current);}return rendered_message_lists;diff --git a/static/js/recent_topics_ui.js b/static/js/recent_topics_ui.jsindex 77be5bc4fec..ed8d8f41457 100644--- a/static/js/recent_topics_ui.js+++ b/static/js/recent_topics_ui.js@@ -11,7 +11,6 @@ import {$t} from "./i18n";import * as ListWidget from "./list_widget";import * as loading from "./loading";import {localstorage} from "./localstorage";-import * as message_lists from "./message_lists";import * as message_store from "./message_store";import * as message_util from "./message_util";import * as message_view_header from "./message_view_header";@@ -664,7 +663,6 @@ export function show() {compose_closed_ui.update_buttons_for_recent_topics();narrow_state.reset_current_filter();- message_lists.set_current(message_lists.home);narrow.set_narrow_title("Recent topics");message_view_header.render_title_area();narrow.handle_middle_pane_transition();