Make sure stream:x foo suggests stream:x topic:foo

There was some misguided code that eliminated the suggestion when
the user typed out the full topic, and since then there is more
generalized protection against duplicate suggestions.

(imported from commit 857e74458d10995170d312b77d99d839706ae680)
This commit is contained in:
Steve Howell 2013-07-25 18:07:07 -04:00
parent ed76d14e42
commit 91b05ffe88
1 changed files with 0 additions and 6 deletions

View File

@ -332,12 +332,6 @@ function get_topic_suggestions(query_operators) {
if (guess !== '') {
topics = $.grep(topics, function (topic) {
// Don't suggest a topic if the user has already typed out
// the full topic name.
var redundant = topic.toLowerCase() === guess.toLowerCase();
if (redundant) {
return false;
}
return phrase_match(topic, guess);
});
}