Remove searchNicks for the time being

We should not have search implementation without a specced filter /
facet setup.
This commit is contained in:
Nachtalb 2021-04-12 23:22:58 +02:00
parent de86c144b5
commit d6a23061fc
No known key found for this signature in database
GPG key ID: E48DF13C07055D92

View file

@ -206,16 +206,9 @@ class MessageStorage {
}
let select =
'SELECT msg, type, time, network, channel FROM messages WHERE type = "message" AND (json_extract(msg, "$.text") LIKE ?';
'SELECT msg, type, time, network, channel FROM messages WHERE type = "message" AND json_extract(msg, "$.text") LIKE ?';
const params = [`%${query.searchTerm}%`];
if (query.searchNicks) {
select += ' OR json_extract(msg, "$.from.nick") LIKE ?)';
params.push(query.searchTerm);
} else {
select += ")";
}
if (query.networkUuid) {
select += " AND network = ? ";
params.push(query.networkUuid);