diff options
author | Richard van der Hoff <github@rvanderhoff.org.uk> | 2017-04-07 16:14:41 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-07 16:14:41 +0100 |
commit | 54a59adc7c64eed42a847fc5e8428f31d25fd11c (patch) | |
tree | fd47194ef59edabc6e921890407fc543b471327e /synapse | |
parent | Bump version and changelog (diff) | |
parent | When we do an invite rejection, save the signed leave event to the db (diff) | |
download | synapse-54a59adc7c64eed42a847fc5e8428f31d25fd11c.tar.xz |
Merge pull request #2110 from matrix-org/rav/fix_reject_persistence
When we do an invite rejection, save the signed leave event to the db
Diffstat (limited to 'synapse')
-rw-r--r-- | synapse/handlers/federation.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/synapse/handlers/federation.py b/synapse/handlers/federation.py index 2ecc0087b8..53f9296399 100644 --- a/synapse/handlers/federation.py +++ b/synapse/handlers/federation.py @@ -1101,15 +1101,15 @@ class FederationHandler(BaseHandler): user_id, "leave" ) - signed_event = self._sign_event(event) + event = self._sign_event(event) except SynapseError: raise except CodeMessageException as e: logger.warn("Failed to reject invite: %s", e) raise SynapseError(500, "Failed to reject invite") - # Try the host we successfully got a response to /make_join/ - # request first. + # Try the host that we succesfully called /make_leave/ on first for + # the /send_leave/ request. try: target_hosts.remove(origin) target_hosts.insert(0, origin) @@ -1119,7 +1119,7 @@ class FederationHandler(BaseHandler): try: yield self.replication_layer.send_leave( target_hosts, - signed_event + event ) except SynapseError: raise |