fix release build and decrese search results to 150 for messages

This commit is contained in:
Audric Ackermann 2022-02-02 11:35:44 +11:00
parent 40344bde52
commit 98bdd53bd5
No known key found for this signature in database
GPG Key ID: 999F434D76324AD4
2 changed files with 3 additions and 2 deletions

View File

@ -94,6 +94,8 @@
"os-locale": "2.1.0",
"p-retry": "^4.2.0",
"pify": "3.0.0",
"protobufjs": "^6.11.2",
"rc-slider": "^8.7.1",
"react": "^17.0.2",
"react-contexify": "5.0.0",
@ -188,7 +190,6 @@
"playwright": "^1.16.3",
"postinstall-prepare": "^1.0.1",
"prettier": "1.19.0",
"protobufjs": "^6.11.2",
"run-script-os": "^1.1.6",
"sinon": "9.0.2",
"ts-loader": "4.1.0",

View File

@ -199,7 +199,7 @@ function getAdvancedSearchOptionsFromQuery(query: string): AdvancedSearchOptions
async function queryMessages(query: string): Promise<Array<MessageResultProps>> {
try {
const normalized = cleanSearchTerm(query);
return searchMessages(normalized, 1000);
return searchMessages(normalized, 150);
} catch (e) {
return [];
}