diff options
author | Erik Johnston <erik@matrix.org> | 2019-01-23 20:13:07 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2019-01-23 20:13:07 +0000 |
commit | 17898a5ba66c7bc15b105e13c735478d03c4a3a4 (patch) | |
tree | 8b53d79e3f0bc652a209f92763223d1a602b2db6 /synapse/events | |
parent | Merge branch 'erikj/get_pdu_versions' into erikj/require_format_version (diff) | |
parent | Clarify the invite flows (diff) | |
download | synapse-17898a5ba66c7bc15b105e13c735478d03c4a3a4.tar.xz |
Merge branch 'erikj/fixup_rejecting_invites' of github.com:matrix-org/synapse into erikj/require_format_version
Diffstat (limited to 'synapse/events')
-rw-r--r-- | synapse/events/__init__.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/synapse/events/__init__.py b/synapse/events/__init__.py index e6f94e68af..01db729847 100644 --- a/synapse/events/__init__.py +++ b/synapse/events/__init__.py @@ -42,8 +42,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. |