mirror of
https://github.com/thelounge/thelounge.git
synced 2024-05-30 04:12:35 +02:00
Disable searching nicks.
This commit is contained in:
parent
fc4c2bc9d7
commit
28aac994a3
|
@ -206,8 +206,8 @@ class MessageStorage {
|
|||
}
|
||||
|
||||
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 ?)';
|
||||
const params = [query.networkUuid, `%${query.searchTerm}%`, `%${query.searchTerm}%`];
|
||||
'SELECT msg, type, time, channel FROM messages WHERE type = "message" AND network = ? AND json_extract(msg, "$.text") LIKE ?';
|
||||
const params = [query.networkUuid, `%${query.searchTerm}%`];
|
||||
|
||||
if (query.channelName) {
|
||||
select += " AND channel = ? ";
|
||||
|
|
Loading…
Reference in a new issue