fix release build and decrese search results to 150 for messages

pull/2142/head
Audric Ackermann 3 years ago
parent 40344bde52
commit 98bdd53bd5
No known key found for this signature in database
GPG Key ID: 999F434D76324AD4

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

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

Loading…
Cancel
Save