Skip to content
Snippets Groups Projects
Commit b8849c8c authored by Erik Johnston's avatar Erik Johnston
Browse files

Re-sign events when we return them via federation as a temporary hack to work...

Re-sign events when we return them via federation as a temporary hack to work around the problem where we reconstruct events differently than when they were signed
parent 00ab5cd6
No related branches found
No related tags found
No related merge requests found
......@@ -540,6 +540,17 @@ class FederationHandler(BaseHandler):
)
if event:
# FIXME: This is a temporary work around where we occasionally
# return events slightly differently than when they were
# originally signed
event.signatures.update(
compute_event_signature(
event,
self.hs.hostname,
self.hs.config.signing_key[0]
)
)
if do_auth:
in_room = yield self.auth.check_host_in_room(
event.room_id,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment