diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2021-07-01 14:25:37 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-01 14:25:37 -0400 |
commit | 8d609435c0053fc4decbc3f9c3603e728912749c (patch) | |
tree | 71ac54e8aaf9a2c810dd374ef5f3e5ecbbd20d73 /synapse/handlers/room.py | |
parent | fix ordering of bg update (#10291) (diff) | |
download | synapse-8d609435c0053fc4decbc3f9c3603e728912749c.tar.xz |
Move methods involving event authentication to EventAuthHandler. (#10268)
Instead of mixing them with user authentication methods.
Diffstat (limited to 'synapse/handlers/room.py')
-rw-r--r-- | synapse/handlers/room.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/handlers/room.py b/synapse/handlers/room.py index 835d874cee..579b1b93c5 100644 --- a/synapse/handlers/room.py +++ b/synapse/handlers/room.py @@ -83,6 +83,7 @@ class RoomCreationHandler(BaseHandler): self.spam_checker = hs.get_spam_checker() self.event_creation_handler = hs.get_event_creation_handler() self.room_member_handler = hs.get_room_member_handler() + self._event_auth_handler = hs.get_event_auth_handler() self.config = hs.config # Room state based off defined presets @@ -226,7 +227,7 @@ class RoomCreationHandler(BaseHandler): }, ) old_room_version = await self.store.get_room_version_id(old_room_id) - await self.auth.check_from_context( + await self._event_auth_handler.check_from_context( old_room_version, tombstone_event, tombstone_context ) |