summary refs log tree commit diff
path: root/synapse/events
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/events
parentClarify the invite flows (diff)
downloadsynapse-b8082a54451bb4db30e3b2a4d19dc8cb23330eb7.tar.xz
Use term 'out of band membership' instead
Diffstat (limited to 'synapse/events')
-rw-r--r--synapse/events/__init__.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/synapse/events/__init__.py b/synapse/events/__init__.py
index 5030636c7e..48289cad06 100644
--- a/synapse/events/__init__.py
+++ b/synapse/events/__init__.py
@@ -41,12 +41,13 @@ class _EventInternalMetadata(object):
     def is_outlier(self):
         return getattr(self, "outlier", False)
 
-    def is_new_remote_event(self):
-        """Whether this is a new remote event, like an invite or an invite
+    def is_out_of_band_membership(self):
+        """Whether this is an out of band membership, like an invite or an invite
         rejection. This is needed as those events are marked as outliers, but
-        they still need to be processed.
+        they still need to be processed as if they're new events (e.g. updating
+        invite state in the database, relaying to clients, etc).
         """
-        return getattr(self, "new_remote_event", False)
+        return getattr(self, "out_of_band_membership", False)
 
     def get_send_on_behalf_of(self):
         """Whether this server should send the event on behalf of another server.