Skip to content

Commit

Permalink
Return more search results now that searching is more efficient (#6664)
Browse files Browse the repository at this point in the history
  • Loading branch information
hpeebles authored Oct 24, 2024
1 parent 01d5e64 commit 02f2dfe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
searching = true;
const lowercase = term.toLowerCase();
try {
let response = await client.searchChat(chat.id, lowercase, mentions, 50);
let response = await client.searchChat(chat.id, lowercase, mentions, 200);
if (response.kind === "success") {
matches = filterAndSortMatches(response.matches);
if (matches.length > 0) {
Expand Down
2 changes: 1 addition & 1 deletion frontend/openchat-client/src/openchat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4995,7 +4995,7 @@ export class OpenChat extends OpenChatAgentWorker {
chatId: ChatIdentifier,
searchTerm: string,
userIds: string[],
maxResults = 10,
maxResults: number,
): Promise<SearchDirectChatResponse | SearchGroupChatResponse> {
switch (chatId.kind) {
case "channel":
Expand Down

0 comments on commit 02f2dfe

Please sign in to comment.