Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
recent: Rename update_buttons_for_recent_topics.
evykassirer0804704a76e3
diff --git a/web/src/compose_closed_ui.js b/web/src/compose_closed_ui.jsindex 41055814202..92def3f3d19 100644--- a/web/src/compose_closed_ui.js+++ b/web/src/compose_closed_ui.js@@ -128,7 +128,7 @@ export function update_buttons_for_stream() {update_buttons(text_stream);}-export function update_buttons_for_recent_topics() {+export function update_buttons_for_recent_view() {const text_stream = $t({defaultMessage: "New stream message"});$("#left_bar_compose_stream_button_big").attr("data-tooltip-template-id",diff --git a/web/src/recent_view_ui.js b/web/src/recent_view_ui.jsindex b81458f0c7d..58da1552bba 100644--- a/web/src/recent_view_ui.js+++ b/web/src/recent_view_ui.js@@ -921,7 +921,7 @@ export function show() {// We want to show `new stream message` instead of// `new topic`, which we are already doing in this// function. So, we reuse it here.- compose_closed_ui.update_buttons_for_recent_topics();+ compose_closed_ui.update_buttons_for_recent_view();narrow_state.reset_current_filter();narrow.update_narrow_title(narrow_state.filter());diff --git a/web/tests/recent_topics.test.js b/web/tests/recent_topics.test.jsindex 87c7f9e17cf..5b8f7cfc50c 100644--- a/web/tests/recent_topics.test.js+++ b/web/tests/recent_topics.test.js@@ -86,7 +86,7 @@ const ListWidget = mock_esm("../src/list_widget", {mock_esm("../src/compose_closed_ui", {set_standard_text_for_reply_button: noop,- update_buttons_for_recent_topics: noop,+ update_buttons_for_recent_view: noop,});mock_esm("../src/hash_util", {by_stream_url: test_url,