mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-10-01 08:25:44 -04:00
Only get non-state
This commit is contained in:
parent
39a3340f73
commit
1f3d1d85a9
@ -383,6 +383,7 @@ class EventFederationStore(SQLBaseStore):
|
|||||||
" ON prev_event_id = events.event_id"
|
" ON prev_event_id = events.event_id"
|
||||||
" AND event_edges.room_id = events.room_id"
|
" AND event_edges.room_id = events.room_id"
|
||||||
" WHERE event_edges.room_id = ? AND event_edges.event_id = ?"
|
" WHERE event_edges.room_id = ? AND event_edges.event_id = ?"
|
||||||
|
" AND event_edges.is_state = ?"
|
||||||
" LIMIT ?"
|
" LIMIT ?"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -418,7 +419,7 @@ class EventFederationStore(SQLBaseStore):
|
|||||||
|
|
||||||
txn.execute(
|
txn.execute(
|
||||||
query,
|
query,
|
||||||
(room_id, event_id, limit - len(event_results))
|
(room_id, event_id, False, limit - len(event_results))
|
||||||
)
|
)
|
||||||
|
|
||||||
for row in txn.fetchall():
|
for row in txn.fetchall():
|
||||||
|
Loading…
Reference in New Issue
Block a user