This commit is contained in:
Amber Brown 2019-03-12 18:06:28 +11:00
parent c980c7e31f
commit 8b618041ef

View file

@ -648,7 +648,7 @@ class UserDirectoryStore(BackgroundUpdateStore):
) AS s USING (user_id) ) AS s USING (user_id)
""" """
join_args = (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): if isinstance(self.database_engine, PostgresEngine):
full_query, exact_query, prefix_query = _parse_query_postgres(search_term) full_query, exact_query, prefix_query = _parse_query_postgres(search_term)