mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-02 04:56:02 -04:00
Address review comments
This commit is contained in:
parent
05ea111c47
commit
9ff940a0ef
2 changed files with 17 additions and 8 deletions
|
@ -528,7 +528,7 @@ class RoomMemberHandler(BaseHandler):
|
|||
if not inviter:
|
||||
raise SynapseError(404, "Not a known room")
|
||||
|
||||
if inviter.domain == self.server_name:
|
||||
if self.hs.is_mine(inviter):
|
||||
# the inviter was on our server, but has now left. Carry on
|
||||
# with the normal rejection codepath.
|
||||
#
|
||||
|
@ -537,7 +537,8 @@ class RoomMemberHandler(BaseHandler):
|
|||
pass
|
||||
else:
|
||||
# send the rejection to the inviter's HS.
|
||||
remote_room_hosts = [inviter.domain]
|
||||
remote_room_hosts = remote_room_hosts or []
|
||||
remote_room_hosts.append(inviter.domain)
|
||||
action = "remote_reject"
|
||||
|
||||
federation_handler = self.hs.get_handlers().federation_handler
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue