mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-29 07:28:55 +03:00
Fixup membership query
This commit is contained in:
parent
bae1115e55
commit
c3208e45c9
1 changed files with 2 additions and 2 deletions
|
@ -483,9 +483,9 @@ class RoomMemberStore(SQLBaseStore):
|
||||||
|
|
||||||
def add_membership_profile_txn(txn):
|
def add_membership_profile_txn(txn):
|
||||||
sql = ("""
|
sql = ("""
|
||||||
SELECT stream_ordering, event_id, room_id, content
|
SELECT stream_ordering, event_id, events.room_id, content
|
||||||
FROM events
|
FROM events
|
||||||
INNER JOIN room_memberships USING (room_id, event_id)
|
INNER JOIN room_memberships USING (event_id)
|
||||||
WHERE ? <= stream_ordering AND stream_ordering < ?
|
WHERE ? <= stream_ordering AND stream_ordering < ?
|
||||||
AND type = 'm.room.member'
|
AND type = 'm.room.member'
|
||||||
ORDER BY stream_ordering DESC
|
ORDER BY stream_ordering DESC
|
||||||
|
|
Loading…
Reference in a new issue