summary refs log tree commit diff
path: root/synapse/handlers/room_member_worker.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2019-11-28 11:31:56 +0000
committerErik Johnston <erik@matrix.org>2019-11-28 11:31:56 +0000
commit2173785f0d9124037ca841b568349ad0424b39cd (patch)
tree467adf4816349298c9f40ab05d1dfa2cac6dba7c /synapse/handlers/room_member_worker.py
parentMSC2367 Allow reason field on all member events (diff)
downloadsynapse-2173785f0d9124037ca841b568349ad0424b39cd.tar.xz
Propagate reason in remotely rejected invites
Diffstat (limited to 'synapse/handlers/room_member_worker.py')
-rw-r--r--synapse/handlers/room_member_worker.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/synapse/handlers/room_member_worker.py b/synapse/handlers/room_member_worker.py
index 75e96ae1a2..69be86893b 100644
--- a/synapse/handlers/room_member_worker.py
+++ b/synapse/handlers/room_member_worker.py
@@ -55,7 +55,9 @@ class RoomMemberWorkerHandler(RoomMemberHandler):
 
         return ret
 
-    def _remote_reject_invite(self, requester, remote_room_hosts, room_id, target):
+    def _remote_reject_invite(
+        self, requester, remote_room_hosts, room_id, target, content
+    ):
         """Implements RoomMemberHandler._remote_reject_invite
         """
         return self._remote_reject_client(
@@ -63,6 +65,7 @@ class RoomMemberWorkerHandler(RoomMemberHandler):
             remote_room_hosts=remote_room_hosts,
             room_id=room_id,
             user_id=target.to_string(),
+            content=content,
         )
 
     def _user_joined_room(self, target, room_id):