Skip to content
Snippets Groups Projects
Commit c980c7e3 authored by Amber Brown's avatar Amber Brown
Browse files

use the old method

parent 78a6b950
No related branches found
No related tags found
No related merge requests found
......@@ -641,12 +641,11 @@ class UserDirectoryStore(BackgroundUpdateStore):
where_clause = "1=1"
else:
join_clause = """
LEFT JOIN users_in_public_rooms AS p USING (user_id)
LEFT JOIN (
SELECT user_id FROM users_in_public_rooms
UNION
SELECT other_user_id AS user_id FROM users_who_share_private_rooms
WHERE user_id = ?
) AS p USING (user_id)
) AS s USING (user_id)
"""
join_args = (user_id,)
where_clause = "p.user_id IS NOT NULL"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment