searchConversations: Search on e164 field, not id
This commit is contained in:
parent
6afa6db5be
commit
fcf5ebe9da
1 changed files with 2 additions and 2 deletions
|
@ -2252,14 +2252,14 @@ async function searchConversations(
|
||||||
const rows = await db.all(
|
const rows = await db.all(
|
||||||
`SELECT json FROM conversations WHERE
|
`SELECT json FROM conversations WHERE
|
||||||
(
|
(
|
||||||
id LIKE $id OR
|
e164 LIKE $e164 OR
|
||||||
name LIKE $name OR
|
name LIKE $name OR
|
||||||
profileFullName LIKE $profileFullName
|
profileFullName LIKE $profileFullName
|
||||||
)
|
)
|
||||||
ORDER BY active_at DESC
|
ORDER BY active_at DESC
|
||||||
LIMIT $limit`,
|
LIMIT $limit`,
|
||||||
{
|
{
|
||||||
$id: `%${query}%`,
|
$e164: `%${query}%`,
|
||||||
$name: `%${query}%`,
|
$name: `%${query}%`,
|
||||||
$profileFullName: `%${query}%`,
|
$profileFullName: `%${query}%`,
|
||||||
$limit: limit || 100,
|
$limit: limit || 100,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue