mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-12-22 04:04: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):
|
||||
sql = ("""
|
||||
SELECT stream_ordering, event_id, room_id, content
|
||||
SELECT stream_ordering, event_id, events.room_id, content
|
||||
FROM events
|
||||
INNER JOIN room_memberships USING (room_id, event_id)
|
||||
INNER JOIN room_memberships USING (event_id)
|
||||
WHERE ? <= stream_ordering AND stream_ordering < ?
|
||||
AND type = 'm.room.member'
|
||||
ORDER BY stream_ordering DESC
|
||||
|
Loading…
Reference in New Issue
Block a user