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_closed_ui: Remove unnecessary code updating the new DM button.

Sayam Samalf545adcb93d2
diff --git a/web/src/compose_closed_ui.ts b/web/src/compose_closed_ui.ts
index 7eb2342ebf1..70010200d3b 100644
--- a/web/src/compose_closed_ui.ts
+++ b/web/src/compose_closed_ui.ts
@@ -82,13 +82,7 @@ function update_reply_button_state(disable = false): void {
}
}
-function update_new_direct_message_button(btn_text: string): void {
- $("#new_direct_message_button").text(btn_text);
-}
-
function update_buttons(disable_reply?: boolean): void {
- const text_conversation = $t({defaultMessage: "New direct message"});
- update_new_direct_message_button(text_conversation);
update_reply_button_state(disable_reply);
}