mirror of
https://github.com/zulip/zulip.git
synced 2025-11-11 17:36:27 +00:00
message_list: Don't always cache "Combined feed" view.
Important changes in this commit: * We only cache message list for "Combined feed" if it is the default view. * We modify existing handling of home message list code so that it can be used to for any message list that we want to cache using a new `preserve_rendered_state` variable. * narrow_state.filter() returns the filter of combined feed view list instead of `undefined`. * We start fetching messages from the latest message on app load. * Messages in all messages data and Recent view are always synced. * If combined feed view list is not cached, we don't track it's last pointer, effectively sending user to the latest unread message always .
This commit is contained in:
@@ -206,7 +206,8 @@ export function initialize(): void {
|
||||
const narrow_filter = narrow_state.filter();
|
||||
let display_current_view;
|
||||
if (narrow_state.is_message_feed_visible()) {
|
||||
if (narrow_filter === undefined) {
|
||||
assert(narrow_filter !== undefined);
|
||||
if (narrow_filter.is_in_home()) {
|
||||
display_current_view = $t({
|
||||
defaultMessage: "Currently viewing your combined feed.",
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user