parent
86cb7c97be
commit
8abd73fa4f
1 changed files with 3 additions and 0 deletions
|
@ -247,6 +247,9 @@ function updateSearchTerm(query: string): UpdateSearchTermActionType {
|
|||
async function queryMessages(query: string, searchConversationId?: string) {
|
||||
try {
|
||||
const normalized = cleanSearchTerm(query);
|
||||
if (normalized.length === 0) {
|
||||
return [];
|
||||
}
|
||||
|
||||
if (searchConversationId) {
|
||||
return searchMessagesInConversation(normalized, searchConversationId);
|
||||
|
|
Loading…
Reference in a new issue