From a3c57fb05f5dbe255b958a4eadfa3baf715917fb Mon Sep 17 00:00:00 2001 From: "Murad \"Gness Erquint\" Beybalaev" Date: Wed, 19 Mar 2025 20:27:35 +0300 Subject: [PATCH] Correct the chat search comment. --- src/endpoints/chats.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/endpoints/chats.js b/src/endpoints/chats.js index 0844311e5..d890c8490 100644 --- a/src/endpoints/chats.js +++ b/src/endpoints/chats.js @@ -783,7 +783,7 @@ router.post('/search', validateAvatarUrlMiddleware, function (request, response) continue; } - // Search through chats + // Search through title and messages of the chat const fragments = query.trim().toLowerCase().split(/\s+/).filter(x => x); const text = [chatFile.path.split(/[\\\/]/).pop().replace(/.jsonl$/, ''), ...messages.map(message => message?.mes)].join("\n").toLowerCase();