summary refs log tree commit diff
path: root/synapse/events
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2019-01-28 21:09:45 +0000
committerErik Johnston <erik@matrix.org>2019-01-29 11:56:20 +0000
commit7709d2bd167e27493b134e938410c307f8c10396 (patch)
tree50f41d8957288a492a066de6d1fb8b7ff0092c77 /synapse/events
parentAdd RoomVersions.V3 constant, without enabling it (diff)
downloadsynapse-7709d2bd167e27493b134e938410c307f8c10396.tar.xz
Implement rechecking of redactions
Diffstat (limited to 'synapse/events')
-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 3fe52aaa45..70d3c0fbd9 100644
--- a/synapse/events/__init__.py
+++ b/synapse/events/__init__.py
@@ -63,6 +63,9 @@ class _EventInternalMetadata(object):
         """
         return getattr(self, "send_on_behalf_of", None)
 
+    def need_to_check_redaction(self):
+        return getattr(self, "recheck_redaction", False)
+
 
 def _event_dict_property(key):
     # We want to be able to use hasattr with the event dict properties.