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.

compose_tooltips: Rename "non-stream" to "non-specific" type/view.

Sayam Samal24e5004a541a
diff --git a/web/src/compose_closed_ui.js b/web/src/compose_closed_ui.js
index c6091437de7..6f7115a6cdc 100644
--- a/web/src/compose_closed_ui.js
+++ b/web/src/compose_closed_ui.js
@@ -145,9 +145,9 @@ export function update_buttons_for_stream_views() {
update_buttons(text_stream);
}
-export function update_buttons_for_non_stream_views() {
+export function update_buttons_for_non_specific_views() {
const text_stream = $t({defaultMessage: "Start new conversation"});
- $("#new_conversation_button").attr("data-conversation-type", "non-stream");
+ $("#new_conversation_button").attr("data-conversation-type", "non-specific");
update_buttons(text_stream);
}
diff --git a/web/src/compose_tooltips.js b/web/src/compose_tooltips.js
index 8ad9afdce89..316635cb445 100644
--- a/web/src/compose_tooltips.js
+++ b/web/src/compose_tooltips.js
@@ -57,7 +57,7 @@ export function initialize() {
return;
}
// Use new_stream_message_button_tooltip_template when the
- // conversation_type is equal to "non-stream" and also as a default fallback.
+ // conversation_type is equal to "non-specific" and also as a default fallback.
instance.setContent(
parse_html($("#new_stream_message_button_tooltip_template").html()),
);
diff --git a/web/src/inbox_ui.js b/web/src/inbox_ui.js
index 8718d8371c5..df6e67e6efd 100644
--- a/web/src/inbox_ui.js
+++ b/web/src/inbox_ui.js
@@ -86,7 +86,7 @@ export function show() {
views_util.show({
highlight_view_in_left_sidebar: left_sidebar_navigation_area.highlight_inbox_view,
$view: $("#inbox-view"),
- update_compose: compose_closed_ui.update_buttons_for_non_stream_views,
+ update_compose: compose_closed_ui.update_buttons_for_non_specific_views,
is_visible,
set_visible,
complete_rerender,
diff --git a/web/src/narrow.js b/web/src/narrow.js
index 83dd4cc72a5..cc276672d0b 100644
--- a/web/src/narrow.js
+++ b/web/src/narrow.js
@@ -1072,7 +1072,7 @@ function handle_post_view_change(msg_list) {
} else if (filter.is_conversation_view() || filter.includes_full_stream_history()) {
compose_closed_ui.update_buttons_for_stream_views();
} else {
- compose_closed_ui.update_buttons_for_non_stream_views();
+ compose_closed_ui.update_buttons_for_non_specific_views();
}
compose_closed_ui.update_reply_recipient_label();
diff --git a/web/src/recent_view_ui.js b/web/src/recent_view_ui.js
index 373df5f378f..f6190ab96f8 100644
--- a/web/src/recent_view_ui.js
+++ b/web/src/recent_view_ui.js
@@ -1064,7 +1064,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.
- update_compose: compose_closed_ui.update_buttons_for_non_stream_views,
+ update_compose: compose_closed_ui.update_buttons_for_non_specific_views,
is_recent_view: true,
is_visible: recent_view_util.is_visible,
set_visible: recent_view_util.set_visible,
diff --git a/web/tests/recent_view.test.js b/web/tests/recent_view.test.js
index cfd4ab5a36e..4d891fbaae2 100644
--- a/web/tests/recent_view.test.js
+++ b/web/tests/recent_view.test.js
@@ -88,7 +88,7 @@ const ListWidget = mock_esm("../src/list_widget", {
mock_esm("../src/compose_closed_ui", {
set_standard_text_for_reply_button: noop,
- update_buttons_for_non_stream_views: noop,
+ update_buttons_for_non_specific_views: noop,
});
mock_esm("../src/hash_util", {
by_stream_url: test_url,