summary refs log tree commit diff
diff options
context:
space:
mode:
authorHubert Chathi <hubert@uhoreg.ca>2020-09-03 16:34:06 -0400
committerHubert Chathi <hubert@uhoreg.ca>2020-09-03 16:34:06 -0400
commitb7398f74891c3b302360258a1954c731298ea52d (patch)
tree0e88d04ef91da74c14a1ae2b8359d740935fa5fe
parentnewer version of dehydration proposal, add doc improvements and other minor f... (diff)
downloadsynapse-b7398f74891c3b302360258a1954c731298ea52d.tar.xz
fix nonexistent reference
-rw-r--r--synapse/handlers/device.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/handlers/device.py b/synapse/handlers/device.py
index e1fd39356c..7c809b27f0 100644
--- a/synapse/handlers/device.py
+++ b/synapse/handlers/device.py
@@ -610,7 +610,8 @@ class DeviceHandler(DeviceWorkerHandler):
         login_submission = token_info["login_submission"]
         device_id = login_submission.get("device_id")
         initial_display_name = login_submission.get("initial_device_display_name")
-        device_id, access_token = await self.registration_handler.register_device(
+        registration_handler = self.hs.get_registration_handler()
+        device_id, access_token = await registration_handler.register_device(
             token_info.get("user_id"), device_id, initial_display_name
         )