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_actions: Remove useless conditional.

Tim Abbott9dd88e845a88
diff --git a/static/js/compose_actions.js b/static/js/compose_actions.js
index 5564f403f09..be9582e5594 100644
--- a/static/js/compose_actions.js
+++ b/static/js/compose_actions.js
@@ -65,10 +65,6 @@ export const _get_focus_area = get_focus_area;
export function set_focus(msg_type, opts) {
const focus_area = get_focus_area(msg_type, opts);
- if (focus_area === undefined) {
- return;
- }
-
if (window.getSelection().toString() === "" || opts.trigger !== "message click") {
const elt = $(focus_area);
elt.trigger("focus").trigger("select");