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.

all_messages_data: Rename to recent_view_messages_data.

Aman Agrawal99db1868067a
diff --git a/web/src/all_messages_data.ts b/web/src/all_messages_data.ts
deleted file mode 100644
index 662317eb5c5..00000000000
--- a/web/src/all_messages_data.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-import {Filter} from "./filter.ts";
-import {MessageListData} from "./message_list_data.ts";
-
-export let all_messages_data = new MessageListData({
- excludes_muted_topics: false,
- excludes_muted_users: false,
- filter: new Filter([]),
-});
-
-export function rewire_all_messages_data(value: typeof all_messages_data): void {
- all_messages_data = value;
-}
diff --git a/web/src/emoji_frequency.ts b/web/src/emoji_frequency.ts
index c1f0bdd7149..9887fbdbccd 100644
--- a/web/src/emoji_frequency.ts
+++ b/web/src/emoji_frequency.ts
@@ -1,11 +1,11 @@
import assert from "minimalistic-assert";
-import * as all_messages_data from "./all_messages_data.ts";
import * as emoji_frequency_data from "./emoji_frequency_data.ts";
import * as emoji_picker from "./emoji_picker.ts";
import * as message_store from "./message_store.ts";
import * as muted_users from "./muted_users.ts";
import * as reactions from "./reactions.ts";
+import * as recent_view_messages_data from "./recent_view_messages_data.ts";
import {current_user} from "./state_data.ts";
import * as stream_data from "./stream_data.ts";
import * as typeahead from "./typeahead.ts";
@@ -123,7 +123,7 @@ export function update_emoji_frequency_on_messages_deletion(message_ids: number[
}
export function initialize_frequently_used_emojis(): void {
- const message_data = all_messages_data.all_messages_data;
+ const message_data = recent_view_messages_data.recent_view_messages_data;
const messages = message_data.all_messages_after_mute_filtering();
const popular_emojis = typeahead.get_popular_emojis();
diff --git a/web/src/local_message.ts b/web/src/local_message.ts
index 0c61cbb4bd5..566210008dc 100644
--- a/web/src/local_message.ts
+++ b/web/src/local_message.ts
@@ -1,5 +1,5 @@
-import {all_messages_data} from "./all_messages_data.ts";
import * as blueslip from "./blueslip.ts";
+import {recent_view_messages_data} from "./recent_view_messages_data.ts";
import type {StateData} from "./state_data.ts";
let max_message_id: number;
@@ -13,7 +13,7 @@ export const get_next_id_float = (function () {
return function (): number | undefined {
const local_id_increment = 0.01;
- let latest = all_messages_data.last()?.id ?? max_message_id;
+ let latest = recent_view_messages_data.last()?.id ?? max_message_id;
latest = Math.max(0, latest);
const local_id_float = truncate_precision(latest + local_id_increment);
diff --git a/web/src/message_fetch.ts b/web/src/message_fetch.ts
index 306600c6ac9..6d290ea3af2 100644
--- a/web/src/message_fetch.ts
+++ b/web/src/message_fetch.ts
@@ -1,7 +1,6 @@
import assert from "minimalistic-assert";
import * as z from "zod/mini";
-import {all_messages_data} from "./all_messages_data.ts";
import * as blueslip from "./blueslip.ts";
import * as channel from "./channel.ts";
import * as compose_closed_ui from "./compose_closed_ui.ts";
@@ -23,6 +22,7 @@ import * as message_viewport from "./message_viewport.ts";
import * as narrow_banner from "./narrow_banner.ts";
import {page_params} from "./page_params.ts";
import * as popup_banners from "./popup_banners.ts";
+import {recent_view_messages_data} from "./recent_view_messages_data.ts";
import * as recent_view_ui from "./recent_view_ui.ts";
import {narrow_operator_schema} from "./state_data.ts";
import type {NarrowTerm} from "./state_data.ts";
@@ -708,10 +708,10 @@ export function initialize(finished_initial_fetch: () => void): void {
// Stop once we've hit the minimum backfill quantity of
// messages if we've received a message older than
// `target_days_of_history`.
- const latest_message = all_messages_data.first();
+ const latest_message = recent_view_messages_data.first();
assert(latest_message !== undefined);
if (
- all_messages_data.num_items() >= consts.minimum_initial_backfill_size &&
+ recent_view_messages_data.num_items() >= consts.minimum_initial_backfill_size &&
latest_message.timestamp < fetch_target_day_timestamp
) {
initial_backfill_for_all_messages_done = true;
@@ -719,7 +719,7 @@ export function initialize(finished_initial_fetch: () => void): void {
return;
}
- if (all_messages_data.num_items() >= consts.maximum_initial_backfill_size) {
+ if (recent_view_messages_data.num_items() >= consts.maximum_initial_backfill_size) {
initial_backfill_for_all_messages_done = true;
emoji_frequency.initialize_frequently_used_emojis();
return;
@@ -738,18 +738,22 @@ export function initialize(finished_initial_fetch: () => void): void {
anchor: oldest_id,
num_before: consts.catch_up_batch_size,
num_after: 0,
- msg_list_data: all_messages_data,
+ msg_list_data: recent_view_messages_data,
cont: load_more,
});
}, consts.catch_up_backfill_delay);
}
- // Since `all_messages_data` contains continuous message history
+ // Since `recent_view_messages_data` contains continuous message history
// which always contains the latest message, it makes sense for
// Recent view to display the same data and be in sync.
- all_messages_data.set_add_messages_callback((messages, rows_order_changed) => {
+ recent_view_messages_data.set_add_messages_callback((messages, rows_order_changed) => {
try {
- recent_view_ui.process_messages(messages, rows_order_changed, all_messages_data);
+ recent_view_ui.process_messages(
+ messages,
+ rows_order_changed,
+ recent_view_messages_data,
+ );
} catch (error) {
blueslip.error("Error in recent_view_ui.process_messages", undefined, error);
}
@@ -766,7 +770,7 @@ export function initialize(finished_initial_fetch: () => void): void {
// Since we backfill a lot more messages here compared to rendered message list,
// we can try populating them if we can do so locally.
for (const msg_list_data of message_list_data_cache.all()) {
- if (msg_list_data === all_messages_data) {
+ if (msg_list_data === recent_view_messages_data) {
continue;
}
@@ -784,12 +788,15 @@ export function initialize(finished_initial_fetch: () => void): void {
// This callback is only called when backfilling messages,
// so we need to check for the presence of any message from
- // the message list in the all_messages_data to
+ // the message list in the recent_view_messages_data to
// check for continuous message history for the message list.
const first_message = msg_list_data.first();
assert(first_message !== undefined);
- if (all_messages_data.get(first_message.id) !== undefined) {
- const messages_to_populate = all_messages_data.message_range(0, first_message.id);
+ if (recent_view_messages_data.get(first_message.id) !== undefined) {
+ const messages_to_populate = recent_view_messages_data.message_range(
+ 0,
+ first_message.id,
+ );
if (msg_list_data.rendered_message_list_id) {
const msg_list = message_lists.rendered_message_lists.get(
msg_list_data.rendered_message_list_id,
@@ -812,7 +819,7 @@ export function initialize(finished_initial_fetch: () => void): void {
anchor: "newest",
num_before: consts.initial_backfill_fetch_size,
num_after: 0,
- msg_list_data: all_messages_data,
+ msg_list_data: recent_view_messages_data,
cont: load_more,
});
}
diff --git a/web/src/message_list_data.ts b/web/src/message_list_data.ts
index 3e0ad28ca20..1b56f7d3858 100644
--- a/web/src/message_list_data.ts
+++ b/web/src/message_list_data.ts
@@ -33,7 +33,7 @@ export class MessageListData {
_hash: Map<number, Message>;
// Some views exclude muted topics / users.
//
- // Also, `all_messages_data` never excludes anything by definition.
+ // Also, `recent_view_messages_data` never excludes anything by definition.
excludes_muted_topics: boolean;
excludes_muted_users: boolean;
// Tracks any locally echoed messages, which we know aren't present on the server.
diff --git a/web/src/message_list_data_cache.ts b/web/src/message_list_data_cache.ts
index 54e1baf71a5..f46fffe6635 100644
--- a/web/src/message_list_data_cache.ts
+++ b/web/src/message_list_data_cache.ts
@@ -1,13 +1,15 @@
-import * as all_messages_data from "./all_messages_data.ts";
import type {Filter} from "./filter.ts";
import type {MessageListData} from "./message_list_data.ts";
+import * as recent_view_messages_data from "./recent_view_messages_data.ts";
// LRU cache for message list data.
//
// While it's unlikely that user will narrow to empty filter,
-// but we will still need to update all_messages_data since it used
+// but we will still need to update recent_view_messages_data since it used
// as super set for populating other views.
-let cache = new Map<number, MessageListData>([[0, all_messages_data.all_messages_data]]);
+let cache = new Map<number, MessageListData>([
+ [0, recent_view_messages_data.recent_view_messages_data],
+]);
let latest_key = 0;
// Maximum number of data items to cache.
@@ -55,8 +57,12 @@ export function add(message_list_data: MessageListData): void {
if (cache.size >= CACHE_STORAGE_LIMIT) {
// Remove the oldest item from the cache.
for (const [key, cached_data] of cache.entries()) {
- // We never want to remove the all_messages_data from the cache.
- if (cached_data.filter.equals(all_messages_data.all_messages_data.filter)) {
+ // We never want to remove the recent_view_messages_data from the cache.
+ if (
+ cached_data.filter.equals(
+ recent_view_messages_data.recent_view_messages_data.filter,
+ )
+ ) {
continue;
}
cache.delete(key);
@@ -73,7 +79,7 @@ export function all(): MessageListData[] {
}
export function clear(): void {
- cache = new Map([[0, all_messages_data.all_messages_data]]);
+ cache = new Map([[0, recent_view_messages_data.recent_view_messages_data]]);
latest_key = 0;
}
@@ -86,7 +92,7 @@ export function get_superset_datasets(filter: Filter): MessageListData[] {
superset_datasets.push(superset_data);
}
- return [...superset_datasets, all_messages_data.all_messages_data];
+ return [...superset_datasets, recent_view_messages_data.recent_view_messages_data];
}
export function remove(filter: Filter): void {
diff --git a/web/src/message_util.ts b/web/src/message_util.ts
index d39c1be3df7..b486640fa19 100644
--- a/web/src/message_util.ts
+++ b/web/src/message_util.ts
@@ -1,9 +1,9 @@
-import {all_messages_data} from "./all_messages_data.ts";
import * as message_lists from "./message_lists.ts";
import * as message_store from "./message_store.ts";
import type {Message} from "./message_store.ts";
import * as people from "./people.ts";
import * as pm_conversations from "./pm_conversations.ts";
+import {recent_view_messages_data} from "./recent_view_messages_data.ts";
import * as unread from "./unread.ts";
import * as unread_ui from "./unread_ui.ts";
@@ -32,7 +32,7 @@ export function get_count_of_messages_in_topic_sent_after_current_message(
}
export function get_loaded_messages_in_topic(stream_id: number, topic: string): Message[] {
- return all_messages_data
+ return recent_view_messages_data
.all_messages_after_mute_filtering()
.filter(
(x) =>
@@ -43,14 +43,14 @@ export function get_loaded_messages_in_topic(stream_id: number, topic: string):
}
export function get_messages_in_dm_conversations(user_ids_strings: Set<string>): Message[] {
- return all_messages_data
+ return recent_view_messages_data
.all_messages_after_mute_filtering()
.filter((x) => x.type === "private" && user_ids_strings.has(x.to_user_ids));
}
export function get_max_message_id_in_stream(stream_id: number): number {
let max_message_id = 0;
- for (const msg of all_messages_data.all_messages_after_mute_filtering()) {
+ for (const msg of recent_view_messages_data.all_messages_after_mute_filtering()) {
if (msg.type === "stream" && msg.stream_id === stream_id && msg.id > max_message_id) {
max_message_id = msg.id;
}
diff --git a/web/src/message_view.ts b/web/src/message_view.ts
index ebce99ae080..6d071de0d63 100644
--- a/web/src/message_view.ts
+++ b/web/src/message_view.ts
@@ -5,7 +5,6 @@ import assert from "minimalistic-assert";
import * as z from "zod/mini";
import * as activity_ui from "./activity_ui.ts";
-import {all_messages_data} from "./all_messages_data.ts";
import * as blueslip from "./blueslip.ts";
import * as browser_history from "./browser_history.ts";
import * as channel from "./channel.ts";
@@ -49,6 +48,7 @@ import {page_params} from "./page_params.ts";
import * as people from "./people.ts";
import * as pm_list from "./pm_list.ts";
import * as popup_banners from "./popup_banners.ts";
+import {recent_view_messages_data} from "./recent_view_messages_data.ts";
import * as recent_view_ui from "./recent_view_ui.ts";
import * as recent_view_util from "./recent_view_util.ts";
import * as resize from "./resize.ts";
@@ -1011,14 +1011,14 @@ function navigate_to_anchor_message(opts: {
if (is_anchor_fetched(message_lists.current.data)) {
select_msg_id(message_list_data_to_target_message_id(message_lists.current.data));
return;
- } else if (is_anchor_fetched(all_messages_data) && anchor !== "date") {
+ } else if (is_anchor_fetched(recent_view_messages_data) && anchor !== "date") {
// We can load messages into `msg_list_data` but we don't know
// the fetch status until we contact server. If we are contacting the
// server, it is better to just fetch the required messages instead
// of just fetching status.
//
// So, a cheaper check is to see if we have found the anchor in
- // `all_messages_data`, and if we have, we can say `msg_list_data`
+ // `recent_view_messages_data`, and if we have, we can say `msg_list_data`
// will also have the anchor (for oldest / newest anchors at least).
//
// We skip this for date anchor since message_list_data_to_target_message_id
@@ -1032,8 +1032,8 @@ function navigate_to_anchor_message(opts: {
excludes_muted_topics: message_lists.current.data.excludes_muted_topics,
excludes_muted_users: message_lists.current.data.excludes_muted_users,
});
- load_local_messages(msg_list_data, all_messages_data);
- // It is still possible that `all_messages_data` doesn't have any messages
+ load_local_messages(msg_list_data, recent_view_messages_data);
+ // It is still possible that `recent_view_messages_data` doesn't have any messages
// for the current narrow, so we check for that.
if (!msg_list_data.visibly_empty()) {
select_anchor_using_data(msg_list_data);
diff --git a/web/src/recent_view_data.ts b/web/src/recent_view_data.ts
index d41fa76edd8..b9e969c75c8 100644
--- a/web/src/recent_view_data.ts
+++ b/web/src/recent_view_data.ts
@@ -15,7 +15,7 @@ export function process_message(msg: Message): boolean {
// Important: This function must correctly handle processing a
// given message more than once; this happens during the loading
// process because of how recent_view_message_list_data duplicates
- // all_messages_data.
+ // recent_view_messages_data.
// Return whether any conversation data is updated.
let conversation_data_updated = false;
diff --git a/web/src/recent_view_messages_data.ts b/web/src/recent_view_messages_data.ts
new file mode 100644
index 00000000000..8bff4e2e870
--- /dev/null
+++ b/web/src/recent_view_messages_data.ts
@@ -0,0 +1,15 @@
+import {Filter} from "./filter.ts";
+import {MessageListData} from "./message_list_data.ts";
+
+// This only has messages for which user has UserMessages, we can
+// assume that the history is contiguous for most cases but not always
+// due to missing history of messages with UserMessages.
+export let recent_view_messages_data = new MessageListData({
+ excludes_muted_topics: false,
+ excludes_muted_users: false,
+ filter: new Filter([]),
+});
+
+export function rewire_recent_view_messages_data(value: typeof recent_view_messages_data): void {
+ recent_view_messages_data = value;
+}
diff --git a/web/src/recent_view_ui.ts b/web/src/recent_view_ui.ts
index 9f3a3d7aa30..5b297fec3bb 100644
--- a/web/src/recent_view_ui.ts
+++ b/web/src/recent_view_ui.ts
@@ -493,7 +493,7 @@ export function process_messages(
rows_order_changed = true,
msg_list_data?: MessageListData,
): void {
- // Always synced with messages in all_messages_data.
+ // Always synced with messages in recent_view_messages_data.
let conversation_data_updated = false;
const updated_rows = new Set<string>();
diff --git a/web/src/topic_list.ts b/web/src/topic_list.ts
index 377f627dd3a..d42a28cca8f 100644
--- a/web/src/topic_list.ts
+++ b/web/src/topic_list.ts
@@ -7,12 +7,12 @@ import render_more_topics_spinner from "../templates/more_topics_spinner.hbs";
import render_topic_list_item from "../templates/topic_list_item.hbs";
import render_topic_list_new_topic from "../templates/topic_list_new_topic.hbs";
-import {all_messages_data} from "./all_messages_data.ts";
import * as blueslip from "./blueslip.ts";
import {Typeahead} from "./bootstrap_typeahead.ts";
import type {TypeaheadInputElement} from "./bootstrap_typeahead.ts";
import * as mouse_drag from "./mouse_drag.ts";
import * as popover_menus from "./popover_menus.ts";
+import {recent_view_messages_data} from "./recent_view_messages_data.ts";
import * as scroll_util from "./scroll_util.ts";
import * as stream_data from "./stream_data.ts";
import * as stream_topic_history from "./stream_topic_history.ts";
@@ -203,18 +203,18 @@ export function is_full_topic_history_available(
function all_topics_in_cache(sub: StreamSubscription): boolean {
// Checks whether this browser's cache of contiguous messages
- // (used to locally render narrows) in all_messages_data has all
- // messages from a given stream. Because all_messages_data is a range,
+ // (used to locally render narrows) in recent_view_messages_data has all
+ // messages from a given stream. Because recent_view_messages_data is a range,
// we just need to compare it to the range of history on the stream.
// If the cache isn't initialized, it's a clear false.
- if (all_messages_data === undefined || all_messages_data.empty()) {
+ if (recent_view_messages_data === undefined || recent_view_messages_data.empty()) {
return false;
}
// If the cache doesn't have the latest messages, we can't be sure
// we have all topics.
- if (!all_messages_data.fetch_status.has_found_newest()) {
+ if (!recent_view_messages_data.fetch_status.has_found_newest()) {
return false;
}
@@ -225,7 +225,7 @@ export function is_full_topic_history_available(
return true;
}
- const first_cached_message = all_messages_data.first_including_muted();
+ const first_cached_message = recent_view_messages_data.first_including_muted();
if (sub.first_message_id < first_cached_message!.id) {
// Missing the oldest topics in this stream in our cache.
return false;
diff --git a/web/src/ui_init.js b/web/src/ui_init.js
index 4ecadc19ab0..42afacefcbb 100644
--- a/web/src/ui_init.js
+++ b/web/src/ui_init.js
@@ -14,7 +14,6 @@ import * as activity from "./activity.ts";
import * as activity_ui from "./activity_ui.ts";
import * as add_stream_options_popover from "./add_stream_options_popover.ts";
import * as alert_words from "./alert_words.ts";
-import {all_messages_data} from "./all_messages_data.ts";
import * as audible_notifications from "./audible_notifications.ts";
import * as banners from "./banners.ts";
import * as blueslip from "./blueslip.ts";
@@ -106,6 +105,7 @@ import * as pygments_data from "./pygments_data.ts";
import * as realm_logo from "./realm_logo.ts";
import * as realm_playground from "./realm_playground.ts";
import * as realm_user_settings_defaults from "./realm_user_settings_defaults.ts";
+import {recent_view_messages_data} from "./recent_view_messages_data.ts";
import * as recent_view_ui from "./recent_view_ui.ts";
import * as reload_setup from "./reload_setup.ts";
import * as reminders_overlay_ui from "./reminders_overlay_ui.ts";
@@ -550,7 +550,7 @@ export async function initialize_everything(state_data) {
maybe_load_older_messages(first_unread_message_id) {
recent_view_ui.set_backfill_in_progress(true);
message_fetch.maybe_load_older_messages({
- msg_list_data: all_messages_data,
+ msg_list_data: recent_view_messages_data,
recent_view: true,
// To have a hard anchor on our target of first unread message id,
// we pass it from here, otherwise it might get updated and lead to confusion.
diff --git a/web/tests/narrow_local.test.cjs b/web/tests/narrow_local.test.cjs
index 8902a4f5716..b4aca7fb2f7 100644
--- a/web/tests/narrow_local.test.cjs
+++ b/web/tests/narrow_local.test.cjs
@@ -10,7 +10,7 @@ mock_esm("../src/people.ts", {
maybe_get_user_by_id: noop,
});
-const all_messages_data = zrequire("../src/all_messages_data");
+const recent_view_messages_data = zrequire("../src/recent_view_messages_data");
const {MessageListData} = zrequire("../src/message_list_data");
const narrow_state = zrequire("narrow_state");
@@ -45,7 +45,7 @@ function verify_fixture(fixture, override_rewire) {
final_select_id: undefined,
};
- override_rewire(all_messages_data, "all_messages_data", {
+ override_rewire(recent_view_messages_data, "recent_view_messages_data", {
fetch_status: {
has_found_newest: () => fixture.has_found_newest,
},
@@ -69,7 +69,7 @@ function verify_fixture(fixture, override_rewire) {
message_view.maybe_add_local_messages({
id_info,
msg_data,
- superset_data: all_messages_data.all_messages_data,
+ superset_data: recent_view_messages_data.recent_view_messages_data,
});
assert.deepEqual(id_info, fixture.expected_id_info);
@@ -384,11 +384,11 @@ test_fixture("search, stream, not in all_messages", {
expected_msg_ids: [],
});
-test_fixture("stream/topic not in all_messages", {
+test_fixture("stream/topic not in recent_view_messages_data", {
// This is a bit of a corner case, but you could have a scenario
// where you've gone way back in a topic (perhaps something that
// has been muted a long time) and find an unread message that isn't
- // actually in all_messages_data.
+ // actually in recent_view_messages_data.
filter_terms: [
{operator: "stream", operand: "one"},
{operator: "topic", operand: "whatever"},
diff --git a/web/tests/recent_view.test.cjs b/web/tests/recent_view.test.cjs
index b88779f42d5..feaca9c9478 100644
--- a/web/tests/recent_view.test.cjs
+++ b/web/tests/recent_view.test.cjs
@@ -220,7 +220,7 @@ dropdown_widget.DropdownWidget = function DropdownWidget() {
this.render = noop;
};
-const {all_messages_data} = zrequire("all_messages_data");
+const {recent_view_messages_data} = zrequire("recent_view_messages_data");
const {buddy_list} = zrequire("buddy_list");
const activity_ui = zrequire("activity_ui");
const people = zrequire("people");
@@ -1069,7 +1069,7 @@ test("test_delete_messages", ({override}) => {
// messages[0] was removed.
let reduced_msgs = messages.slice(1);
- override(all_messages_data, "all_messages_after_mute_filtering", () => reduced_msgs);
+ override(recent_view_messages_data, "all_messages_after_mute_filtering", () => reduced_msgs);
let all_topics = rt_data.get_conversations();
assert.equal(
@@ -1100,7 +1100,7 @@ test("test_delete_messages", ({override}) => {
});
test("test_topic_edit", ({override}) => {
- override(all_messages_data, "all_messages_after_mute_filtering", () => messages);
+ override(recent_view_messages_data, "all_messages_after_mute_filtering", () => messages);
recent_view_util.set_visible(false);
// NOTE: This test should always run in the end as it modified the messages data.
diff --git a/web/tests/topic_list.test.cjs b/web/tests/topic_list.test.cjs
index b6a953d4993..13a6dfa61f5 100644
--- a/web/tests/topic_list.test.cjs
+++ b/web/tests/topic_list.test.cjs
@@ -11,7 +11,7 @@ mock_esm("../src/people.ts", {
maybe_get_user_by_id: noop,
});
-const all_messages_data = zrequire("all_messages_data");
+const recent_view_messages_data = zrequire("recent_view_messages_data");
const {set_realm} = zrequire("state_data");
const stream_data = zrequire("stream_data");
const stream_topic_history = zrequire("stream_topic_history");
@@ -40,16 +40,16 @@ test("is_full_topic_history_available", ({override}) => {
];
const sub = stream_data.create_sub_from_server_data(general);
- // Currently, all_messages_data is empty.
+ // Currently, recent_view_messages_data is empty.
assert.equal(topic_list.is_full_topic_history_available(stream_id), false);
- all_messages_data.all_messages_data.clear();
- all_messages_data.all_messages_data.add_messages(messages, true);
+ recent_view_messages_data.recent_view_messages_data.clear();
+ recent_view_messages_data.recent_view_messages_data.add_messages(messages, true);
let has_found_newest = false;
override(
- all_messages_data.all_messages_data.fetch_status,
+ recent_view_messages_data.recent_view_messages_data.fetch_status,
"has_found_newest",
() => has_found_newest,
);