Merge pull request #6358 from matrix-org/babolivier/message_retention

Implement message retention policies (MSC1763)
This commit is contained in:
Brendan Abolivier 2019-11-27 15:04:38 +00:00 committed by GitHub
commit d31f69afa0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 1055 additions and 8 deletions

View file

@ -2466,7 +2466,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.
@ -2581,7 +2581,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)
return (event, context)
@defer.inlineCallbacks