Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
recent: Rename recent_topics_data.
evykassirere08f64cc1c0a
diff --git a/web/src/echo.js b/web/src/echo.jsindex 99ea78f8a38..52691ff29c5 100644--- a/web/src/echo.js+++ b/web/src/echo.js@@ -16,7 +16,7 @@ import {page_params} from "./page_params";import * as people from "./people";import * as pm_list from "./pm_list";import * as popovers from "./popovers";-import * as recent_topics_data from "./recent_topics_data";+import * as recent_view_data from "./recent_view_data";import * as rows from "./rows";import * as sent_messages from "./sent_messages";import * as stream_data from "./stream_data";@@ -366,7 +366,7 @@ export function reify_message_id(local_id, server_id) {message_store.reify_message_id(opts);update_message_lists(opts);notifications.reify_message_id(opts);- recent_topics_data.reify_message_id_if_available(opts);+ recent_view_data.reify_message_id_if_available(opts);}export function update_message_lists({old_id, new_id}) {diff --git a/web/src/recent_topics_data.js b/web/src/recent_view_data.jssimilarity index 100%rename from web/src/recent_topics_data.jsrename to web/src/recent_view_data.jsdiff --git a/web/src/recent_view_ui.js b/web/src/recent_view_ui.jsindex 63b70376bbc..838ab9f884a 100644--- a/web/src/recent_view_ui.js+++ b/web/src/recent_view_ui.js@@ -29,7 +29,7 @@ import * as people from "./people";import * as pm_list from "./pm_list";import * as popovers from "./popovers";import * as recent_senders from "./recent_senders";-import {get, process_message, topics} from "./recent_topics_data";+import {get, process_message, topics} from "./recent_view_data";import {get_key_from_message, get_topic_key, is_visible, set_visible} from "./recent_view_util";import * as resize from "./resize";import * as scroll_util from "./scroll_util";diff --git a/web/tests/example5.test.js b/web/tests/example5.test.jsindex cc803a79ae1..74702dfaded 100644--- a/web/tests/example5.test.js+++ b/web/tests/example5.test.js@@ -25,7 +25,7 @@ const message_lists = mock_esm("../src/message_lists");const message_util = mock_esm("../src/message_util");const notifications = mock_esm("../src/notifications");const pm_list = mock_esm("../src/pm_list");-const recent_topics_data = mock_esm("../src/recent_topics_data");+const recent_view_data = mock_esm("../src/recent_view_data");const stream_list = mock_esm("../src/stream_list");const unread_ops = mock_esm("../src/unread_ops");const unread_ui = mock_esm("../src/unread_ui");@@ -102,7 +102,7 @@ run_test("insert_message", ({override}) => {helper.redirect(message_util, "add_new_messages_data");helper.redirect(message_util, "add_new_messages");helper.redirect(notifications, "received_messages");- helper.redirect(recent_topics_data, "process_message");+ helper.redirect(recent_view_data, "process_message");helper.redirect(stream_list, "update_streams_sidebar");helper.redirect(unread_ops, "process_visible");helper.redirect(unread_ui, "update_unread_counts");@@ -124,7 +124,7 @@ run_test("insert_message", ({override}) => {[unread_ops, "process_visible"],[notifications, "received_messages"],[stream_list, "update_streams_sidebar"],- [recent_topics_data, "process_message"],+ [recent_view_data, "process_message"],]);// Despite all of our stubbing/mocking, the call todiff --git a/web/tests/recent_topics.test.js b/web/tests/recent_topics.test.jsindex 452579ac2bb..14bac5bf747 100644--- a/web/tests/recent_topics.test.js+++ b/web/tests/recent_topics.test.js@@ -193,7 +193,7 @@ const {all_messages_data} = zrequire("all_messages_data");const people = zrequire("people");const rt = zrequire("recent_view_ui");const recent_view_util = zrequire("recent_view_util");-const rt_data = zrequire("recent_topics_data");+const rt_data = zrequire("recent_view_data");const muted_users = zrequire("muted_users");people.add_active_user({