Merge branch 'hiqua-fix_hanging_search' into next-beta
This commit is contained in:
commit
c0cc878a64
1 changed files with 3 additions and 0 deletions
|
@ -254,6 +254,9 @@ async function queryMessages(
|
|||
): Promise<Array<ClientSearchResultMessageType>> {
|
||||
try {
|
||||
const normalized = cleanSearchTerm(query);
|
||||
if (normalized.length === 0) {
|
||||
return [];
|
||||
}
|
||||
|
||||
if (searchConversationId) {
|
||||
return searchMessagesInConversation(normalized, searchConversationId);
|
||||
|
|
Loading…
Add table
Reference in a new issue