compose_actions: Remove useless conditional.

get_focus_area can never return undefined.

Fixes an issue reported in #18273.
This commit is contained in:
Tim Abbott 2021-04-27 23:12:03 -07:00
parent 5e55165f9f
commit 9dd88e845a
1 changed files with 0 additions and 4 deletions

View File

@ -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");