aboutsummaryrefslogtreecommitdiff
path: root/federationapi/routing/invite.go
diff options
context:
space:
mode:
Diffstat (limited to 'federationapi/routing/invite.go')
-rw-r--r--federationapi/routing/invite.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/federationapi/routing/invite.go b/federationapi/routing/invite.go
index 6c3e12e2..4b367e00 100644
--- a/federationapi/routing/invite.go
+++ b/federationapi/routing/invite.go
@@ -63,9 +63,10 @@ func Invite(
// Check that the event is signed by the server sending the request.
redacted := event.Redact()
verifyRequests := []gomatrixserverlib.VerifyJSONRequest{{
- ServerName: event.Origin(),
- Message: redacted.JSON(),
- AtTS: event.OriginServerTS(),
+ ServerName: event.Origin(),
+ Message: redacted.JSON(),
+ AtTS: event.OriginServerTS(),
+ StrictValidityChecking: true,
}}
verifyResults, err := keys.VerifyJSONs(httpReq.Context(), verifyRequests)
if err != nil {