Merge branch 'release-v1.5.0' of github.com:matrix-org/synapse into develop

This commit is contained in:
Erik Johnston 2019-10-29 11:41:27 +00:00
commit e419c44ba4
3 changed files with 10 additions and 5 deletions

View file

@ -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: