summary refs log tree commit diff
path: root/synapse/storage/roommember.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2019-01-24 17:33:19 +0000
committerErik Johnston <erik@matrix.org>2019-01-24 17:33:19 +0000
commitb8082a54451bb4db30e3b2a4d19dc8cb23330eb7 (patch)
tree9879f0a09ff9cf5143f88edd23a0567778a8af20 /synapse/storage/roommember.py
parentClarify the invite flows (diff)
downloadsynapse-b8082a54451bb4db30e3b2a4d19dc8cb23330eb7.tar.xz
Use term 'out of band membership' instead
Diffstat (limited to '')
-rw-r--r--synapse/storage/roommember.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/synapse/storage/roommember.py b/synapse/storage/roommember.py
index 40b13de80b..592c1bcd33 100644
--- a/synapse/storage/roommember.py
+++ b/synapse/storage/roommember.py
@@ -589,11 +589,11 @@ class RoomMemberStore(RoomMemberWorkerStore):
 
             # We update the local_invites table only if the event is "current",
             # 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.
+            # outlier it is only current if its an "out of band membership",
+            # 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_new_remote_event()
+                or event.internal_metadata.is_out_of_band_membership()
             )
             is_mine = self.hs.is_mine_id(event.state_key)
             if is_new_state and is_mine: