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.

typeahead: Fix thin blue line bug when there is space after `>`.

N-Shar-macfa49734410d
diff --git a/static/js/composebox_typeahead.js b/static/js/composebox_typeahead.js
index 0296eb00b8e..93d6a435327 100644
--- a/static/js/composebox_typeahead.js
+++ b/static/js/composebox_typeahead.js
@@ -723,6 +723,12 @@ export function get_candidates(query) {
if (tokens[1]) {
const stream_name = tokens[1];
this.token = tokens[2] || "";
+
+ // Don't autocomplete if there is a space following '>'
+ if (this.token[0] === " ") {
+ return false;
+ }
+
const topic_list = topics_seen_for(stream_name);
if (should_show_custom_query(this.token, topic_list)) {
topic_list.push(this.token);