mirror of https://github.com/zulip/zulip.git
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.
This commit is contained in:
parent
2c693f3bd9
commit
5f127c85f7
|
@ -11,6 +11,7 @@ import {$t} from "./i18n";
|
||||||
import * as ListWidget from "./list_widget";
|
import * as ListWidget from "./list_widget";
|
||||||
import * as loading from "./loading";
|
import * as loading from "./loading";
|
||||||
import {localstorage} from "./localstorage";
|
import {localstorage} from "./localstorage";
|
||||||
|
import * as message_lists from "./message_lists";
|
||||||
import * as message_store from "./message_store";
|
import * as message_store from "./message_store";
|
||||||
import * as message_util from "./message_util";
|
import * as message_util from "./message_util";
|
||||||
import * as message_view_header from "./message_view_header";
|
import * as message_view_header from "./message_view_header";
|
||||||
|
@ -660,6 +661,7 @@ export function show() {
|
||||||
compose_closed_ui.update_buttons_for_recent_topics();
|
compose_closed_ui.update_buttons_for_recent_topics();
|
||||||
|
|
||||||
narrow_state.reset_current_filter();
|
narrow_state.reset_current_filter();
|
||||||
|
message_lists.set_current(message_lists.home);
|
||||||
narrow.set_narrow_title("Recent topics");
|
narrow.set_narrow_title("Recent topics");
|
||||||
message_view_header.render_title_area();
|
message_view_header.render_title_area();
|
||||||
narrow.handle_middle_pane_transition();
|
narrow.handle_middle_pane_transition();
|
||||||
|
|
Loading…
Reference in New Issue