Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

recent_topics_ui: Set current msg_list to home when RT is visible.

Aman Agrawal5f127c85f70a
diff --git a/static/js/recent_topics_ui.js b/static/js/recent_topics_ui.js
index c28ac2095a4..919273d1ae9 100644
--- a/static/js/recent_topics_ui.js
+++ b/static/js/recent_topics_ui.js
@@ -11,6 +11,7 @@ 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";
@@ -660,6 +661,7 @@ 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();