diff options
author | Erik Johnston <erik@matrix.org> | 2018-03-12 16:17:08 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2018-03-13 10:24:27 +0000 |
commit | c3f79c9da56931453ab86a4c726da5a02f18fe1e (patch) | |
tree | d06b4ff02b8fd178572002d34a9305af87ad564c /synapse/handlers/device.py | |
parent | Merge pull request #2962 from matrix-org/rav/purge_history_txns (diff) | |
download | synapse-c3f79c9da56931453ab86a4c726da5a02f18fe1e.tar.xz |
Split out edu/query registration to a separate class
Diffstat (limited to 'synapse/handlers/device.py')
-rw-r--r-- | synapse/handlers/device.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/synapse/handlers/device.py b/synapse/handlers/device.py index 0e83453851..9e58dbe64e 100644 --- a/synapse/handlers/device.py +++ b/synapse/handlers/device.py @@ -41,10 +41,12 @@ class DeviceHandler(BaseHandler): self._edu_updater = DeviceListEduUpdater(hs, self) - self.federation.register_edu_handler( + federation_registry = hs.get_federation_registry() + + federation_registry.register_edu_handler( "m.device_list_update", self._edu_updater.incoming_device_list_update, ) - self.federation.register_query_handler( + federation_registry.register_query_handler( "user_devices", self.on_federation_query_user_devices, ) |