diff options
author | Erik Johnston <erikj@jki.re> | 2018-03-13 11:45:08 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-13 11:45:08 +0000 |
commit | 141c343e030ea32e6c904808dfaded6c839ff8b4 (patch) | |
tree | b0e25cfc9cd8827dac8edf4e0dee242417fd1122 /synapse/handlers/device.py | |
parent | Merge pull request #2962 from matrix-org/rav/purge_history_txns (diff) | |
parent | Fix docstring types (diff) | |
download | synapse-141c343e030ea32e6c904808dfaded6c839ff8b4.tar.xz |
Merge pull request #2976 from matrix-org/erikj/replication_registry
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, ) |