mirror of
https://github.com/zulip/zulip.git
synced 2025-11-22 07:21:23 +00:00
search: Remove in:all token from suggestions.
This commit is contained in:
@@ -384,7 +384,6 @@ init();
|
|||||||
|
|
||||||
var expected = [
|
var expected = [
|
||||||
"",
|
"",
|
||||||
"in:all",
|
|
||||||
"is:private",
|
"is:private",
|
||||||
"is:starred",
|
"is:starred",
|
||||||
"is:mentioned",
|
"is:mentioned",
|
||||||
@@ -400,7 +399,6 @@ init();
|
|||||||
function describe(q) {
|
function describe(q) {
|
||||||
return suggestions.lookup_table[q].description;
|
return suggestions.lookup_table[q].description;
|
||||||
}
|
}
|
||||||
assert.equal(describe('in:all'), 'All messages');
|
|
||||||
assert.equal(describe('is:private'), 'Private messages');
|
assert.equal(describe('is:private'), 'Private messages');
|
||||||
assert.equal(describe('is:starred'), 'Starred messages');
|
assert.equal(describe('is:starred'), 'Starred messages');
|
||||||
assert.equal(describe('is:mentioned'), '@-mentions');
|
assert.equal(describe('is:mentioned'), '@-mentions');
|
||||||
|
|||||||
@@ -344,16 +344,6 @@ function get_operator_subset_suggestions(operators) {
|
|||||||
|
|
||||||
function get_special_filter_suggestions(last, operators) {
|
function get_special_filter_suggestions(last, operators) {
|
||||||
var suggestions = [
|
var suggestions = [
|
||||||
{
|
|
||||||
search_string: 'in:all',
|
|
||||||
description: 'all messages',
|
|
||||||
invalid: [
|
|
||||||
{operator: 'in'},
|
|
||||||
{operator: 'stream'},
|
|
||||||
{operator: 'pm-with'},
|
|
||||||
{operator: 'is', operand: 'private'},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
search_string: 'is:private',
|
search_string: 'is:private',
|
||||||
description: 'private messages',
|
description: 'private messages',
|
||||||
|
|||||||
Reference in New Issue
Block a user