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

Tweak SQL

parent 298d83b3
Branches
Tags
No related merge requests found
...@@ -507,9 +507,12 @@ class RoomMemberStore(SQLBaseStore): ...@@ -507,9 +507,12 @@ class RoomMemberStore(SQLBaseStore):
raise Exception("Invalid host name") raise Exception("Invalid host name")
sql = """ sql = """
SELECT state_key FROM current_state_events SELECT state_key FROM current_state_events AS c
INNER JOIN room_memberships USING (room_id, event_id) INNER JOIN room_memberships USING (event_id)
WHERE membership = 'join' AND room_id = ? AND state_key LIKE ? WHERE membership = 'join'
AND type = 'm.room.member'
AND c.room_id = ?
AND state_key LIKE ?
LIMIT 1 LIMIT 1
""" """
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment