mirror of
https://github.com/zulip/zulip.git
synced 2026-07-06 21:18:58 +08:00
search_pill: Move user_pill_operators to top of file.
This commit is contained in:
parent
0e86b01c5b
commit
35bc9d37f1
@ -41,6 +41,9 @@ type SearchPill =
|
||||
|
||||
export type SearchPillWidget = InputPillContainer<SearchPill>;
|
||||
|
||||
// These operator types use user pills as operands.
|
||||
const user_pill_operators = new Set(["dm", "dm-including", "sender"]);
|
||||
|
||||
export function create_item_from_search_string(search_string: string): SearchPill | undefined {
|
||||
const search_term = util.the(Filter.parse(search_string));
|
||||
if (!Filter.is_valid_search_term(search_term)) {
|
||||
@ -166,8 +169,6 @@ function append_user_pill(
|
||||
pill_widget.clear_text();
|
||||
}
|
||||
|
||||
const user_pill_operators = new Set(["dm", "dm-including", "sender"]);
|
||||
|
||||
export function set_search_bar_contents(
|
||||
search_terms: NarrowTerm[],
|
||||
pill_widget: SearchPillWidget,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user