summary refs log tree commit diff
path: root/synapse/events/__init__.py
diff options
context:
space:
mode:
authorMark Haines <mjark@negativecurvature.net>2016-03-31 15:14:48 +0100
committerMark Haines <mjark@negativecurvature.net>2016-03-31 15:14:48 +0100
commit03e406eefcc7f993c075ba86ec1a433dc09545e4 (patch)
treec1c1c798703a7e799aa00c51c0f314e719cb93d5 /synapse/events/__init__.py
parentMerge pull request #679 from matrix-org/erikj/member (diff)
parentMove the check for backfilled outside the for loop (diff)
downloadsynapse-03e406eefcc7f993c075ba86ec1a433dc09545e4.tar.xz
Merge pull request #680 from matrix-org/markjh/remove_is_new_state
Remove the is_new_state argument to persist event.
Diffstat (limited to 'synapse/events/__init__.py')
-rw-r--r--synapse/events/__init__.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/synapse/events/__init__.py b/synapse/events/__init__.py
index 925a83c645..13154b1723 100644
--- a/synapse/events/__init__.py
+++ b/synapse/events/__init__.py
@@ -33,6 +33,9 @@ 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 _event_dict_property(key):
     def getter(self):