From b7398f74891c3b302360258a1954c731298ea52d Mon Sep 17 00:00:00 2001 From: Hubert Chathi Date: Thu, 3 Sep 2020 16:34:06 -0400 Subject: fix nonexistent reference --- synapse/handlers/device.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 ) -- cgit 1.4.1