mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-12-22 10:24:58 -05:00
Fixup membership query
This commit is contained in:
parent
bae1115e55
commit
c3208e45c9
@ -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 New Issue
Block a user