mirror of
https://mau.dev/maunium/synapse.git
synced 2024-11-18 07:52:56 +01:00
Make room directory search case insensitive
This commit is contained in:
parent
c482d45822
commit
342d871d76
1 changed files with 8 additions and 4 deletions
|
@ -201,13 +201,17 @@ class RoomWorkerStore(SQLBaseStore):
|
|||
where_clauses.append(
|
||||
"""
|
||||
(
|
||||
name LIKE ?
|
||||
OR topic LIKE ?
|
||||
OR canonical_alias LIKE ?
|
||||
LOWER(name) LIKE ?
|
||||
OR LOWER(topic) LIKE ?
|
||||
OR LOWER(canonical_alias) LIKE ?
|
||||
)
|
||||
"""
|
||||
)
|
||||
query_args += [search_term, search_term, search_term]
|
||||
query_args += [
|
||||
search_term.lower(),
|
||||
search_term.lower(),
|
||||
search_term.lower(),
|
||||
]
|
||||
|
||||
where_clause = ""
|
||||
if where_clauses:
|
||||
|
|
Loading…
Reference in a new issue