Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
composebox_typeahead: Return undefined from filter_mention_name.
evykassirer3a67b96966d7
diff --git a/web/src/composebox_typeahead.js b/web/src/composebox_typeahead.jsindex 9c106d3213e..3b8a7fca310 100644--- a/web/src/composebox_typeahead.js+++ b/web/src/composebox_typeahead.js@@ -429,12 +429,12 @@ function filter_mention_name(current_token) {current_token = current_token.slice(1);}if (current_token.lastIndexOf("*") !== -1) {- return false;+ return undefined;}// Don't autocomplete if there is a space following an '@'if (current_token[0] === " ") {- return false;+ return undefined;}return current_token;}@@ -758,7 +758,7 @@ export function get_candidates(query, input_element) {current_token = current_token.slice(1);}current_token = filter_mention_name(current_token);- if (!current_token && typeof current_token === "boolean") {+ if (current_token === undefined) {completing = null;return false;}