summary refs log tree commit diff
path: root/synapse/storage/events.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2017-05-24 14:22:41 +0100
committerErik Johnston <erik@matrix.org>2017-05-24 15:23:31 +0100
commitc049472b8ad75d1d9a627803cd698cfe8c5570b8 (patch)
tree1af3e88e793ec2b47bc5cfacfe876e4319f4e026 /synapse/storage/events.py
parentMerge pull request #2242 from matrix-org/erikj/email_refactor (diff)
downloadsynapse-c049472b8ad75d1d9a627803cd698cfe8c5570b8.tar.xz
Only store event_auth for state events
Diffstat (limited to '')
-rw-r--r--synapse/storage/events.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/synapse/storage/events.py b/synapse/storage/events.py
index c4aeb48800..3d4f53ea55 100644
--- a/synapse/storage/events.py
+++ b/synapse/storage/events.py
@@ -1120,6 +1120,7 @@ class EventsStore(SQLBaseStore):
                 }
                 for event, _ in events_and_contexts
                 for auth_id, _ in event.auth_events
+                if event.is_state()
             ],
         )