mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-07 04:54:56 -04:00
Faster Remote Room Joins: tell remote homeservers that we are unable to authorise them if they query a room which has partial state on our server. (#13823)
This commit is contained in:
parent
ac7e5683d6
commit
c06b2b7142
11 changed files with 58 additions and 42 deletions
|
@ -129,7 +129,7 @@ class TypingNotificationsTestCase(unittest.HomeserverTestCase):
|
|||
async def check_host_in_room(room_id: str, server_name: str) -> bool:
|
||||
return room_id == ROOM_ID
|
||||
|
||||
hs.get_event_auth_handler().check_host_in_room = check_host_in_room
|
||||
hs.get_event_auth_handler().is_host_in_room = check_host_in_room
|
||||
|
||||
async def get_current_hosts_in_room(room_id: str):
|
||||
return {member.domain for member in self.room_members}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue