Skip to content
Snippets Groups Projects
Commit 342d871d authored by Erik Johnston's avatar Erik Johnston
Browse files

Make room directory search case insensitive

parent c482d458
No related branches found
No related tags found
No related merge requests found
...@@ -201,13 +201,17 @@ class RoomWorkerStore(SQLBaseStore): ...@@ -201,13 +201,17 @@ class RoomWorkerStore(SQLBaseStore):
where_clauses.append( where_clauses.append(
""" """
( (
name LIKE ? LOWER(name) LIKE ?
OR topic LIKE ? OR LOWER(topic) LIKE ?
OR canonical_alias 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 = "" where_clause = ""
if where_clauses: if where_clauses:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment