summary refs log tree commit diff
path: root/synapse/storage/roommember.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2019-01-23 20:13:07 +0000
committerErik Johnston <erik@matrix.org>2019-01-23 20:13:07 +0000
commit17898a5ba66c7bc15b105e13c735478d03c4a3a4 (patch)
tree8b53d79e3f0bc652a209f92763223d1a602b2db6 /synapse/storage/roommember.py
parentMerge branch 'erikj/get_pdu_versions' into erikj/require_format_version (diff)
parentClarify the invite flows (diff)
downloadsynapse-17898a5ba66c7bc15b105e13c735478d03c4a3a4.tar.xz
Merge branch 'erikj/fixup_rejecting_invites' of github.com:matrix-org/synapse into erikj/require_format_version
Diffstat (limited to 'synapse/storage/roommember.py')
-rw-r--r--synapse/storage/roommember.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/synapse/storage/roommember.py b/synapse/storage/roommember.py
index 0707f9a86a..40b13de80b 100644
--- a/synapse/storage/roommember.py
+++ b/synapse/storage/roommember.py
@@ -588,12 +588,12 @@ class RoomMemberStore(RoomMemberWorkerStore):
             )
 
             # We update the local_invites table only if the event is "current",
-            # i.e., its something that has just happened.
-            # The only current event that can also be an outlier is if its an
-            # invite that has come in across federation.
+            # i.e., its something that has just happened. If the event is an
+            # outlier it is only current if its a "new remote event", like a
+            # remote invite or a rejection of a remote invite.
             is_new_state = not backfilled and (
                 not event.internal_metadata.is_outlier()
-                or event.internal_metadata.is_invite_from_remote()
+                or event.internal_metadata.is_new_remote_event()
             )
             is_mine = self.hs.is_mine_id(event.state_key)
             if is_new_state and is_mine: