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:
Hongbo Wu
2023-12-29 14:51:00 +08:00
committed by GitHub

View File

@ -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)
}