summary refs log tree commit diff
path: root/synapse/events/__init__.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2019-01-23 20:05:44 +0000
committerErik Johnston <erik@matrix.org>2019-01-23 20:07:47 +0000
commit7c288c22500e2045d36a29c38d2671fad6484e30 (patch)
tree39bbd259e15dfae1daf77003f7eff4bb9e6ce5b5 /synapse/events/__init__.py
parentRemove unnecessary '_sign_event' (diff)
downloadsynapse-7c288c22500e2045d36a29c38d2671fad6484e30.tar.xz
Clarify the invite flows
Diffstat (limited to 'synapse/events/__init__.py')
-rw-r--r--synapse/events/__init__.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/synapse/events/__init__.py b/synapse/events/__init__.py

index 84c75495d5..5030636c7e 100644 --- a/synapse/events/__init__.py +++ b/synapse/events/__init__.py
@@ -41,8 +41,12 @@ class _EventInternalMetadata(object): def is_outlier(self): return getattr(self, "outlier", False) - def is_invite_from_remote(self): - return getattr(self, "invite_from_remote", False) + def is_new_remote_event(self): + """Whether this is a new remote event, like an invite or an invite + rejection. This is needed as those events are marked as outliers, but + they still need to be processed. + """ + return getattr(self, "new_remote_event", False) def get_send_on_behalf_of(self): """Whether this server should send the event on behalf of another server.