Merge pull request #3276 from omnivore-app/fix/in-library
by default we want to search in the inbox if no in: is specified
This commit is contained in:
@ -10,5 +10,10 @@ export const parseSearchQuery = (query: string): LiqeQuery => {
|
||||
// remove any quotes that are in the array value for example: label:"test","test2" -> label:"test,test2"
|
||||
.replace(/","/g, ',')
|
||||
|
||||
// by default we want to search in the inbox if no in: is specified
|
||||
if (!searchQuery.includes('in:')) {
|
||||
return parse(`(${searchQuery}) in:inbox`)
|
||||
}
|
||||
|
||||
return parse(searchQuery)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user