Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Merge pull request #4510 from matrix-org/erikj/fixup_compute_event_si…
Browse files Browse the repository at this point in the history
…gnature

Fixup calls to `comput_event_signature`
  • Loading branch information
erikjohnston authored Jan 29, 2019
2 parents 5488cad + 0c55b77 commit 2562319
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions changelog.d/4510.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add infrastructure to support different event formats
2 changes: 1 addition & 1 deletion synapse/federation/federation_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ def _on_context_state_request_compute(self, room_id, event_id):
if self.hs.is_mine_id(event.event_id):
event.signatures.update(
compute_event_signature(
event,
event.get_pdu_json(),
self.hs.hostname,
self.hs.config.signing_key[0]
)
Expand Down
2 changes: 1 addition & 1 deletion synapse/handlers/federation.py
Original file line number Diff line number Diff line change
Expand Up @@ -1300,7 +1300,7 @@ def on_invite_request(self, origin, pdu):

event.signatures.update(
compute_event_signature(
event,
event.get_pdu_json(),
self.hs.hostname,
self.hs.config.signing_key[0]
)
Expand Down

0 comments on commit 2562319

Please sign in to comment.