summary refs log tree commit diff
path: root/synapse/storage/events.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2016-04-05 09:12:27 +0100
committerErik Johnston <erik@matrix.org>2016-04-05 09:12:27 +0100
commit7a77f8b6d5e7b43bd9ebaed2336455f20deb428e (patch)
treef7dade50bc9b3202cafbb0430e21221a552b4d02 /synapse/storage/events.py
parentMerge pull request #689 from matrix-org/erikj/member (diff)
parentDocs and indents (diff)
downloadsynapse-7a77f8b6d5e7b43bd9ebaed2336455f20deb428e.tar.xz
Merge pull request #690 from matrix-org/erikj/member
Store invites in a separate table.
Diffstat (limited to 'synapse/storage/events.py')
-rw-r--r--synapse/storage/events.py13
1 files changed, 4 insertions, 9 deletions
diff --git a/synapse/storage/events.py b/synapse/storage/events.py
index c4dc3b3d51..5d299a1132 100644
--- a/synapse/storage/events.py
+++ b/synapse/storage/events.py
@@ -367,7 +367,8 @@ class EventsStore(SQLBaseStore):
                 event
                 for event, _ in events_and_contexts
                 if event.type == EventTypes.Member
-            ]
+            ],
+            backfilled=backfilled,
         )
 
         def event_dict(event):
@@ -485,14 +486,8 @@ class EventsStore(SQLBaseStore):
             return
 
         for event, _ in state_events_and_contexts:
-            if (not event.internal_metadata.is_invite_from_remote()
-                    and event.internal_metadata.is_outlier()):
-                # Outlier events generally shouldn't clobber the current state.
-                # However invites from remote severs for rooms we aren't in
-                # are a bit special: they don't come with any associated
-                # state so are technically an outlier, however all the
-                # client-facing code assumes that they are in the current
-                # state table so we insert the event anyway.
+            if event.internal_metadata.is_outlier():
+                # Outlier events shouldn't clobber the current state.
                 continue
 
             if context.rejected: