summary refs log tree commit diff
path: root/synapse/handlers/federation.py
diff options
context:
space:
mode:
authorBrendan Abolivier <babolivier@matrix.org>2019-07-24 14:21:01 +0200
committerBrendan Abolivier <babolivier@matrix.org>2019-08-28 18:16:17 +0100
commit70714595bcc2394d62f9413d8dbcede8296eecd4 (patch)
tree401f87e3e260454e06e9761bbb8c5aa20ac91d71 /synapse/handlers/federation.py
parentMerge pull request #5702 from matrix-org/babolivier/3pid-invite (diff)
downloadsynapse-70714595bcc2394d62f9413d8dbcede8296eecd4.tar.xz
Implement per-room message retention policies
Diffstat (limited to 'synapse/handlers/federation.py')
-rw-r--r--synapse/handlers/federation.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/handlers/federation.py b/synapse/handlers/federation.py
index ab731db7fd..e96edb8bbf 100644
--- a/synapse/handlers/federation.py
+++ b/synapse/handlers/federation.py
@@ -2610,7 +2610,7 @@ class FederationHandler(BaseHandler):
                 room_version, event_dict, event, context
             )
 
-            EventValidator().validate_new(event)
+            EventValidator().validate_new(event, self.config)
 
             # We need to tell the transaction queue to send this out, even
             # though the sender isn't a local user.
@@ -2715,7 +2715,7 @@ class FederationHandler(BaseHandler):
         event, context = yield self.event_creation_handler.create_new_client_event(
             builder=builder,
         )
-        EventValidator().validate_new(event)
+        EventValidator().validate_new(event, self.config)
         defer.returnValue((event, context))
 
     @defer.inlineCallbacks