Merge branch 'hiqua-fix_hanging_search' into next-beta

This commit is contained in:
Evan Hahn
2021-04-14 13:59:06 -05:00
committed by Scott Nonnenberg

View File

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