mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-03 13:04:51 -04:00
Tweak SQL
This commit is contained in:
parent
298d83b340
commit
935e588799
1 changed files with 6 additions and 3 deletions
|
@ -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
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue