summary refs log tree commit diff
path: root/synapse/handlers/federation.py
diff options
context:
space:
mode:
authorRichard van der Hoff <1389908+richvdh@users.noreply.github.com>2020-01-31 13:47:43 +0000
committerGitHub <noreply@github.com>2020-01-31 13:47:43 +0000
commit7f93eb190301024d373a573fc75a58f592469e9f (patch)
tree42757c4ef6ce23ff47eb632ef795415da4768989 /synapse/handlers/federation.py
parentMerge pull request #6806 from matrix-org/rav/redact_changes/3 (diff)
downloadsynapse-7f93eb190301024d373a573fc75a58f592469e9f.tar.xz
pass room_version into compute_event_signature (#6807)
Diffstat (limited to '')
-rw-r--r--synapse/handlers/federation.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/synapse/handlers/federation.py b/synapse/handlers/federation.py
index 0f10c3e9b1..c86d3177e9 100644
--- a/synapse/handlers/federation.py
+++ b/synapse/handlers/federation.py
@@ -1528,7 +1528,10 @@ class FederationHandler(BaseHandler):
 
         event.signatures.update(
             compute_event_signature(
-                event.get_pdu_json(), self.hs.hostname, self.hs.config.signing_key[0]
+                room_version,
+                event.get_pdu_json(),
+                self.hs.hostname,
+                self.hs.config.signing_key[0],
             )
         )