mirror of
				https://github.com/zulip/zulip.git
				synced 2025-10-31 12:03:46 +00:00 
			
		
		
		
	filter: Add streams:public to sorted_term_types.
This is for consistency with in:, has:, and similar values where there's a fixed set of RHS entries.
This commit is contained in:
		| @@ -1120,7 +1120,7 @@ run_test('term_type', () => { | ||||
|         }; | ||||
|     } | ||||
|  | ||||
|     assert_term_type(term('streams', 'public'), 'streams'); | ||||
|     assert_term_type(term('streams', 'public'), 'streams-public'); | ||||
|     assert_term_type(term('stream', 'whatever'), 'stream'); | ||||
|     assert_term_type(term('pm-with', 'whomever'), 'pm-with'); | ||||
|     assert_term_type(term('pm-with', 'whomever', true), 'not-pm-with'); | ||||
|   | ||||
| @@ -587,7 +587,7 @@ Filter.term_type = function (term) { | ||||
|  | ||||
|     result += operator; | ||||
|  | ||||
|     if (_.contains(['is', 'has', 'in'], operator)) { | ||||
|     if (_.contains(['is', 'has', 'in', 'streams'], operator)) { | ||||
|         result += '-' + operand; | ||||
|     } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user