diff options
author | Erik Johnston <erik@matrix.org> | 2019-11-28 11:31:56 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2019-11-28 11:31:56 +0000 |
commit | 2173785f0d9124037ca841b568349ad0424b39cd (patch) | |
tree | 467adf4816349298c9f40ab05d1dfa2cac6dba7c /synapse/handlers/federation.py | |
parent | MSC2367 Allow reason field on all member events (diff) | |
download | synapse-2173785f0d9124037ca841b568349ad0424b39cd.tar.xz |
Propagate reason in remotely rejected invites
Diffstat (limited to 'synapse/handlers/federation.py')
-rw-r--r-- | synapse/handlers/federation.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/handlers/federation.py b/synapse/handlers/federation.py index a5ae7b77d1..d3267734f7 100644 --- a/synapse/handlers/federation.py +++ b/synapse/handlers/federation.py @@ -1428,9 +1428,9 @@ class FederationHandler(BaseHandler): return event @defer.inlineCallbacks - def do_remotely_reject_invite(self, target_hosts, room_id, user_id): + def do_remotely_reject_invite(self, target_hosts, room_id, user_id, content): origin, event, event_format_version = yield self._make_and_verify_event( - target_hosts, room_id, user_id, "leave" + target_hosts, room_id, user_id, "leave", content=content, ) # Mark as outlier as we don't have any state for this event; we're not # even in the room. |