mirror of https://github.com/zulip/zulip.git
compose_actions: Remove useless conditional.
get_focus_area can never return undefined. Fixes an issue reported in #18273.
This commit is contained in:
parent
5e55165f9f
commit
9dd88e845a
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue