mirror of https://github.com/zulip/zulip.git
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:
parent
ed76d14e42
commit
91b05ffe88
|
@ -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);
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue