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_state: Remove `empty_topic_placeholder` function.

Prakhar Pratyushc777fede07d8
diff --git a/web/src/compose_state.ts b/web/src/compose_state.ts
index 2c8e692628b..c1f05447233 100644
--- a/web/src/compose_state.ts
+++ b/web/src/compose_state.ts
@@ -1,7 +1,6 @@
import $ from "jquery";
import * as compose_pm_pill from "./compose_pm_pill.ts";
-import {$t} from "./i18n.ts";
import * as people from "./people.ts";
import * as sub_store from "./sub_store.ts";
@@ -142,10 +141,6 @@ export function rewire_topic(value: typeof topic): void {
topic = value;
}
-export function empty_topic_placeholder(): string {
- return $t({defaultMessage: "(no topic)"});
-}
-
// We can't trim leading whitespace in `compose_textarea` because
// of the indented syntax for multi-line code blocks.
export const message_content = get_or_set("textarea#compose-textarea", true);
diff --git a/web/tests/popover_menus_data.test.cjs b/web/tests/popover_menus_data.test.cjs
index 4a6cc9582ff..55f6a743478 100644
--- a/web/tests/popover_menus_data.test.cjs
+++ b/web/tests/popover_menus_data.test.cjs
@@ -13,7 +13,6 @@ const message_lists = zrequire("message_lists");
const popover_menus_data = zrequire("popover_menus_data");
const people = zrequire("people");
-const compose_state = zrequire("compose_state");
const user_groups = zrequire("user_groups");
const {MessageListData} = zrequire("message_list_data");
const {set_current_user, set_realm} = zrequire("state_data");
@@ -280,7 +279,7 @@ test("not_my_message_view_source_and_move", ({override}) => {
type: "stream",
unread: false,
collapsed: false,
- topic: compose_state.empty_topic_placeholder(),
+ topic: "New topic",
edit_history: [
{
prev_content: "Previous content",