mirror of
https://github.com/thelounge/thelounge.git
synced 2024-06-02 13:52:17 +02:00
Disable searching nicks.
This commit is contained in:
parent
0f3c292098
commit
2591ae9e8e
|
@ -208,8 +208,8 @@ class MessageStorage {
|
||||||
}
|
}
|
||||||
|
|
||||||
let select =
|
let select =
|
||||||
'SELECT msg, type, time, channel FROM messages WHERE type = "message" AND network = ? AND (json_extract(msg, "$.text") LIKE ? OR json_extract(msg, "$.from") LIKE ?)';
|
'SELECT msg, type, time, channel FROM messages WHERE type = "message" AND network = ? AND json_extract(msg, "$.text") LIKE ?';
|
||||||
const params = [query.networkUuid, `%${query.searchTerm}%`, `%${query.searchTerm}%`];
|
const params = [query.networkUuid, `%${query.searchTerm}%`];
|
||||||
|
|
||||||
if (query.channelName) {
|
if (query.channelName) {
|
||||||
select += " AND channel = ? ";
|
select += " AND channel = ? ";
|
||||||
|
|
Loading…
Reference in a new issue