forked from MirrorHub/synapse
fixup
This commit is contained in:
parent
c980c7e31f
commit
8b618041ef
1 changed files with 1 additions and 1 deletions
|
@ -648,7 +648,7 @@ class UserDirectoryStore(BackgroundUpdateStore):
|
|||
) AS s USING (user_id)
|
||||
"""
|
||||
join_args = (user_id,)
|
||||
where_clause = "p.user_id IS NOT NULL"
|
||||
where_clause = "(s.user_id IS NOT NULL OR p.user_id IS NOT NULL)"
|
||||
|
||||
if isinstance(self.database_engine, PostgresEngine):
|
||||
full_query, exact_query, prefix_query = _parse_query_postgres(search_term)
|
||||
|
|
Loading…
Reference in a new issue