From 5f127c85f70a34f98f26264d6e94a4ff35900a0c Mon Sep 17 00:00:00 2001 From: Aman Agrawal Date: Tue, 12 Jul 2022 08:26:46 +0000 Subject: [PATCH] recent_topics_ui: Set current msg_list to home when RT is visible. `current` should ideally be `undefined` here to reflect the correct narrow state but to make sure background updates of message_list go smoothly, we set it to home. --- static/js/recent_topics_ui.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/static/js/recent_topics_ui.js b/static/js/recent_topics_ui.js index c28ac2095a..919273d1ae 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();