mirror of
https://mau.dev/maunium/synapse.git
synced 2024-10-01 01:36:05 -04:00
Fix get_metadata_for_events
(#12904)
This method was introduced in #12852. It is using the `state_key` column from the `events` table, which is not (yet) reliable (see #11496).
This commit is contained in:
parent
119938792b
commit
2480461879
1
changelog.d/12904.misc
Normal file
1
changelog.d/12904.misc
Normal file
@ -0,0 +1 @@
|
|||||||
|
Pull out less state when handling gaps in room DAG.
|
@ -167,8 +167,8 @@ class StateGroupWorkerStore(EventsWorkerStore, SQLBaseStore):
|
|||||||
)
|
)
|
||||||
|
|
||||||
sql = f"""
|
sql = f"""
|
||||||
SELECT e.event_id, e.room_id, e.type, e.state_key FROM events AS e
|
SELECT e.event_id, e.room_id, e.type, se.state_key FROM events AS e
|
||||||
LEFT JOIN state_events USING (event_id)
|
LEFT JOIN state_events se USING (event_id)
|
||||||
WHERE {clause}
|
WHERE {clause}
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user